diff options
| author | seth <[email protected]> | 2023-03-08 02:57:57 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-03-08 15:32:06 -0500 |
| commit | fa7a407bda1b26b413702287f227629af0798f55 (patch) | |
| tree | 38cc9ae1791939a0f92a3f03d37a0249e62cdf1a /profiles/hardware/nvidia.nix | |
| parent | 729db074dc1b93cab10b43119197c8e02a452405 (diff) | |
another major refactor
Diffstat (limited to 'profiles/hardware/nvidia.nix')
| -rw-r--r-- | profiles/hardware/nvidia.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/profiles/hardware/nvidia.nix b/profiles/hardware/nvidia.nix new file mode 100644 index 0000000..473eb81 --- /dev/null +++ b/profiles/hardware/nvidia.nix @@ -0,0 +1,25 @@ +{ + config, + pkgs, + ... +}: { + imports = [ + ./. + ]; + 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"]; +} |
