lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nixos/hddfancontrol: add package option

Adds services.hddfancontrol.package to make the package used by the
module easier to configure

Cobalt 6320c535 173b1cac

+3 -2
+3 -2
nixos/modules/services/hardware/hddfancontrol.nix
··· 42 42 43 43 options = { 44 44 services.hddfancontrol.enable = lib.mkEnableOption "hddfancontrol daemon"; 45 + services.hddfancontrol.package = lib.mkPackageOption pkgs "hddfancontrol" { }; 45 46 46 47 services.hddfancontrol.settings = lib.mkOption { 47 48 type = lib.types.attrsWith { ··· 164 165 let 165 166 argString = lib.strings.concatStringsSep " " (args cnf); 166 167 in 167 - "${lib.getExe pkgs.hddfancontrol} -v ${cnf.logVerbosity} daemon ${argString}"; 168 + "${lib.getExe cfg.package} -v ${cnf.logVerbosity} daemon ${argString}"; 168 169 serviceConfig = { 169 170 CPUSchedulingPolicy = "rr"; 170 171 CPUSchedulingPriority = 49; ··· 189 190 ]; 190 191 in 191 192 { 192 - systemd.packages = [ pkgs.hddfancontrol ]; 193 + systemd.packages = [ cfg.package ]; 193 194 194 195 hardware.sensor.hddtemp = { 195 196 enable = true;