mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/coolercontrol: Use user-preferred nvidia package
(cherry picked from commit 07b369b5aa
)
This commit is contained in:
parent
148355cf9c
commit
00a27d79e1
@ -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
|
||||
];
|
||||
})
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user