Add NUT to palatine-hill and add SOPS merging

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-04-27 20:48:44 -04:00
committed by Alice Huston
parent af622e21db
commit 8c87e68fdf
4 changed files with 127 additions and 50 deletions

View File

@ -237,6 +237,20 @@ in
nix.gc.options = "--delete-older-than 150d";
power.ups = {
enable = true;
ups."LX1325GU3" = {
driver = "usbhid-ups";
port = "auto";
description = "CyberPower LX1325GU3";
};
users.upsmon = {
passwordFile = config.sops.secrets."upsmon/password".path;
upsmon = "primary";
};
upsmon.monitor."LX1325GU3".user = "upsmon";
};
sops = {
defaultSopsFile = ./secrets.yaml;
secrets =
@ -252,6 +266,7 @@ in
group = "hydra";
mode = "440";
};
"upsmon/password".owner = "upsmon";
}
// keygen "zfs-attic-key"
// keygen "zfs-backup-key"