power.ups.upsmon.settings

NixOS option

Additional settings to add to upsmon.conf.

type: attribute set of (atom (null, bool, int, float or string) or list of non-empty (list of (atom (null, bool, int, float or string))))
Default
<rendered-html><p>{ MINSUPPLIES = 1; MONITOR =
<generated from config.power.ups.upsmon.monitor> NOTIFYCMD =
“${cfg.package}/bin/upssched”; POWERDOWNFLAG = “/run/killpower”;
SHUTDOWNCMD = “${pkgs.systemd}/bin/shutdown now”; }</p>
</rendered-html>
Example
<rendered-html><p>{ MINSUPPLIES = 2; NOTIFYFLAG = [ [ “ONLINE” “SYSLOG+EXEC” ] [
“ONBATT” “SYSLOG+EXEC” ] ]; }</p>
</rendered-html>
declared in: nixos/modules/services/monitoring/ups.nixView source on NixOS/nixpkgs →