diff options
| author | Fuwn <[email protected]> | 2024-08-31 01:12:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-08-31 01:12:40 -0700 |
| commit | 7bb7560f229549b5d411af7d3057d8a3830d049d (patch) | |
| tree | 02e577a0122140afc8c9c2eed9e3df4d4d375cf6 /modules/hardware/nvidia.nix | |
| parent | thi (diff) | |
| download | nixos-config-7bb7560f229549b5d411af7d3057d8a3830d049d.tar.xz nixos-config-7bb7560f229549b5d411af7d3057d8a3830d049d.zip | |
ok
Diffstat (limited to 'modules/hardware/nvidia.nix')
| -rw-r--r-- | modules/hardware/nvidia.nix | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix index d6c16e2..31e2100 100644 --- a/modules/hardware/nvidia.nix +++ b/modules/hardware/nvidia.nix @@ -1,17 +1,19 @@ { config, ... }: { - hardware.nvidia = { - modesetting.enable = true; - open = false; - nvidiaSettings = true; - package = config.boot.kernelPackages.nvidiaPackages.beta; - forceFullCompositionPipeline = true; + hardware = { + nvidia-container-toolkit.enable = true; - powerManagement = { - enable = true; - finegrained = false; - }; + nvidia = { + modesetting.enable = true; + open = false; + nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.production; + forceFullCompositionPipeline = true; - prime.nvidiaBusId = "PCI:43:0:0"; + powerManagement = { + enable = true; + finegrained = false; + }; + }; }; } |