Move shared nvidia settings to a separate module

This commit is contained in:
2025-07-18 11:31:59 +02:00
parent 86e7c72b9b
commit cfdada0008
3 changed files with 14 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,11 +50,8 @@
# Enable performance governor
powerManagement.cpuFreqGovernor = "performance";
# Configure Nvidia driver to use with CUDA
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
hardware.graphics.enable = true;
nixpkgs.config.nvidia.acceptLicense = true;
services.xserver.videoDrivers = [ "nvidia" ];
# Older graphics card, open driver not supported
hardware.nvidia.open = false;
# Disable garbage collection for now
nix.gc.automatic = lib.mkForce false;