Move shared nvidia settings to a separate module

Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
2025-07-18 11:31:59 +02:00
committed by Rodrigo Arias Mallo
parent ce8b05b142
commit f3733418b2
3 changed files with 12 additions and 10 deletions

View File

@@ -6,6 +6,7 @@
../module/emulation.nix
../module/debuginfod.nix
../module/ssh-hut-extern.nix
../module/nvidia.nix
../eudy/kernel/perf.nix
];
@@ -49,12 +50,7 @@
# Enable performance governor
powerManagement.cpuFreqGovernor = "performance";
# Configure Nvidia driver to use with CUDA
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
hardware.nvidia.open = false; # Maxwell is older than Turing architecture
hardware.graphics.enable = true;
nixpkgs.config.nvidia.acceptLicense = true;
services.xserver.videoDrivers = [ "nvidia" ];
services.openssh.settings.X11Forwarding = true;