summaryrefslogtreecommitdiff
path: root/hosts/poweredge/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/poweredge/configuration.nix')
-rw-r--r--hosts/poweredge/configuration.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/hosts/poweredge/configuration.nix b/hosts/poweredge/configuration.nix
index 3935daf..40803bf 100644
--- a/hosts/poweredge/configuration.nix
+++ b/hosts/poweredge/configuration.nix
@@ -11,6 +11,9 @@
#./notification-mailer.nix # TODO move some of this stuff to archetype
];
+ # Allow unfree packages for nvidia/cuda
+ nixpkgs.config.allowUnfree = true;
+
# Setup bootloader
boot._loader.enable = true;
@@ -22,6 +25,7 @@
home.users.timmy.enable = true;
};
zfs.enable = true;
+ cuda.enable = true;
};
};
@@ -30,8 +34,12 @@
# Enable nvidia
hardware.nvidia = {
- open = false; # Need for NVENC
- package = config.boot.kernelPackages.nvidiaPackages.stable;
+ modesetting.enable = true; # Required
+ nvidiaSettings = false; # Don't need gui
+ open = false;
+ package = config.boot.kernelPackages.nvidiaPackages.legacy_580; # Support for P600
+ powerManagement.enable = false; # Can cause bugs
+ powerManagement.finegrained = false; # Only works on turing and newer
};
# Enable user timmy