diff --git a/machines/vault01/ups.nix b/machines/vault01/ups.nix index 87642ca..911344e 100644 --- a/machines/vault01/ups.nix +++ b/machines/vault01/ups.nix @@ -1,18 +1,23 @@ -{ pkgs, config, ... }: +{ + pkgs, + lib, + config, + ... +}: { power.ups = { enable = true; - ups."eaton" = { + ups.eaton = { driver = "usbhid-ups"; port = "auto"; }; upsmon.enable = false; - users."eatonMon" = { + users.eatonmon = { passwordFile = config.age.secrets."eatonmon-password_file".path; upsmon = "primary"; }; - upsmon.monitor."eaton" = { - user = "eatonMon"; + upsmon.monitor.eaton = { + user = "eatonmon"; }; schedulerRules = let @@ -32,7 +37,7 @@ *) MEANING="Signal unknown, check configuration.";; esac sendmail -i -t <