nixos/coolercontrol: Use user-preferred nvidia package
This commit is contained in:
parent
7781c1a927
commit
07b369b5aa
@ -48,9 +48,11 @@ in
|
|||||||
|
|
||||||
# Nvidia support
|
# Nvidia support
|
||||||
(lib.mkIf cfg.nvidiaSupport {
|
(lib.mkIf cfg.nvidiaSupport {
|
||||||
systemd.services.coolercontrold.path = with config.boot.kernelPackages; [
|
systemd.services.coolercontrold.path = let
|
||||||
nvidia_x11 # nvidia-smi
|
nvidiaPkg = config.hardware.nvidia.package;
|
||||||
nvidia_x11.settings # nvidia-settings
|
in [
|
||||||
|
nvidiaPkg # nvidia-smi
|
||||||
|
nvidiaPkg.settings # nvidia-settings
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user