about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorOPNA2608 <opna2608@protonmail.com>2024-05-29 15:21:41 +0200
committerOPNA2608 <opna2608@protonmail.com>2024-05-29 15:21:41 +0200
commit07b369b5aa23f2cbbec73c2aa228909c7fc74532 (patch)
tree07d58e62f2b18a267428809c360b1bd412ee2985 /nixos
parent7781c1a927adfcdb872c1273075996e4179d3e67 (diff)
nixos/coolercontrol: Use user-preferred nvidia package
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/coolercontrol.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/programs/coolercontrol.nix b/nixos/modules/programs/coolercontrol.nix
index 8c9a39d2eba99..1c64d46ae2b90 100644
--- a/nixos/modules/programs/coolercontrol.nix
+++ b/nixos/modules/programs/coolercontrol.nix
@@ -48,9 +48,11 @@ in
 
     # Nvidia support
     (lib.mkIf cfg.nvidiaSupport {
-      systemd.services.coolercontrold.path = with config.boot.kernelPackages; [
-        nvidia_x11 # nvidia-smi
-        nvidia_x11.settings # nvidia-settings
+      systemd.services.coolercontrold.path = let
+        nvidiaPkg = config.hardware.nvidia.package;
+      in [
+        nvidiaPkg # nvidia-smi
+        nvidiaPkg.settings # nvidia-settings
       ];
     })
   ]);