diff options
| author | seth <[email protected]> | 2023-05-08 00:21:41 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-08 00:21:41 -0400 |
| commit | 9cedd06b8589a5d39a7a85e2efe646a8edebac53 (patch) | |
| tree | 8884a1238b0586396bc403098e23e78505ab514e /modules/hardware/nvidia.nix | |
| parent | 589c80eb1bcaf76b4a1a7e6f9cdd725fdb04e063 (diff) | |
modules: merge base and nixos
Diffstat (limited to 'modules/hardware/nvidia.nix')
| -rw-r--r-- | modules/hardware/nvidia.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix deleted file mode 100644 index c317226..0000000 --- a/modules/hardware/nvidia.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: let - cfg = config.getchoo.hardware.nvidia; - inherit (lib) mkEnableOption mkIf; -in { - options.getchoo.hardware.nvidia.enable = mkEnableOption "enable nvidia support"; - - config = mkIf cfg.enable { - getchoo.hardware.enable = true; - - hardware = { - nvidia = { - package = config.boot.kernelPackages.nvidiaPackages.stable; - modesetting.enable = true; - }; - - opengl = { - enable = true; - # make steam work - driSupport32Bit = true; - extraPackages = with pkgs; [ - vaapiVdpau - ]; - }; - }; - - services.xserver.videoDrivers = ["nvidia"]; - }; -} |
