From 39129c6bee655a381116d34c4feccdbaf7f8a25b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 14 Apr 2024 15:45:49 +0200 Subject: Improve NVidia configuration --- system/settings/hardware/nvidia-gpu.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system') diff --git a/system/settings/hardware/nvidia-gpu.nix b/system/settings/hardware/nvidia-gpu.nix index e1c50d2e..0195dbd3 100644 --- a/system/settings/hardware/nvidia-gpu.nix +++ b/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 @@ }; services.displayManager.sddm.wayland.enable = false; + services.displayManager.defaultSession = "plasmax11"; } -- cgit 1.4.1