Added cfg values

This commit is contained in:
ari committed 2024-07-31 14:45:29 -04:00
1 parent eba5869d86
commit 144a822090
2 files changed
+21 -3

No files matched your search

+4 -1
View File
@@ -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";
};
};