add script for writing to the pipe

This commit is contained in:
Alex Tau 2025-12-19 18:26:11 +03:00
parent 10e79d6827
commit 191839d30f
12 changed files with 223 additions and 158 deletions

View file

@ -79,6 +79,7 @@ package:
ups = with cfg.checks.ups; {
ups_to_check = upsToCheck;
upsmon_group = upsmonGroup;
};
};
};
@ -97,5 +98,8 @@ package:
StartLimitBurst = 3;
};
};
power.ups.upsmon.settings = lib.mkIf (builtins.elem "ups" cfg.enabledCheckSets) {
NOTIFYCMD = "${package}/bin/write-ups-status";
};
};
}