Improve NVidia configuration
Alan Pearce alan@alanpearce.eu
Sun, 14 Apr 2024 15:45:49 +0200
1 files changed, 4 insertions(+), 0 deletions(-)
M system/settings/hardware/nvidia-gpu.nix → system/settings/hardware/nvidia-gpu.nix
@@ -5,12 +5,15 @@ , ... }: { services.xserver.videoDrivers = [ "nvidia" ]; + boot.initrd.kernelModules = [ "nvidia" ]; + boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; hardware.nvidia = { modesetting.enable = true; powerManagement = { enable = true; }; + package = config.boot.kernelPackages.nvidiaPackages.stable; }; nixpkgs.config.allowUnfree = true; @@ -19,4 +22,5 @@ enable = lib.mkDefault true; }; services.displayManager.sddm.wayland.enable = false; + services.displayManager.defaultSession = "plasmax11"; }