summary refs log tree commit diff stats
path: root/system/settings/hardware
diff options
context:
space:
mode:
authorAlan Pearce2024-04-14 15:45:49 +0200
committerAlan Pearce2024-04-14 15:45:49 +0200
commit39129c6bee655a381116d34c4feccdbaf7f8a25b (patch)
treea146c14aab1b62d8b403dbe677a99d0c86d3dfbf /system/settings/hardware
parent872e172bfc99fb106424e5337718cda0bfacccec (diff)
downloadnixfiles-39129c6bee655a381116d34c4feccdbaf7f8a25b.tar.lz
nixfiles-39129c6bee655a381116d34c4feccdbaf7f8a25b.tar.zst
nixfiles-39129c6bee655a381116d34c4feccdbaf7f8a25b.zip
Improve NVidia configuration
Diffstat (limited to 'system/settings/hardware')
-rw-r--r--system/settings/hardware/nvidia-gpu.nix4
1 files changed, 4 insertions, 0 deletions
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";
 }