Added cfg values
This commit is contained in:
1 parent
eba5869d86
commit
144a822090
2 files changed
+21
-3
No files matched your search
@@ -9,6 +9,9 @@ in
|
||||
{
|
||||
options.homelab.hardware.fancontrol = with lib; {
|
||||
enable = mkEnableOption "fancontrol";
|
||||
configName = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -22,7 +25,7 @@ in
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol";
|
||||
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${cfg.configName}";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user