summaryrefslogtreecommitdiff
path: root/modules/hardware/nvidia.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-31 01:12:40 -0700
committerFuwn <[email protected]>2024-08-31 01:12:40 -0700
commit7bb7560f229549b5d411af7d3057d8a3830d049d (patch)
tree02e577a0122140afc8c9c2eed9e3df4d4d375cf6 /modules/hardware/nvidia.nix
parentthi (diff)
downloadnixos-config-7bb7560f229549b5d411af7d3057d8a3830d049d.tar.xz
nixos-config-7bb7560f229549b5d411af7d3057d8a3830d049d.zip
ok
Diffstat (limited to 'modules/hardware/nvidia.nix')
-rw-r--r--modules/hardware/nvidia.nix24
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;
+ };
+ };
};
}