From 1eea46b59fb996f069d587a97290b6545585d0e9 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sun, 21 Apr 2024 15:36:46 +0200 Subject: [PATCH] style: requested change --- machines/vault01/ups.nix | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) 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 <