infrastructure/machines/vault01/ups.nix

27 lines
578 B
Nix
Raw Normal View History

2024-04-19 21:10:14 +02:00
# { pkgs, ... }:
{
power.ups = {
enable = true;
ups."eaton" = {
driver = "usbhid-ups";
port = "auto";
};
upsmon.enable = false;
# users."eatonMon" = {
# passwordFile = (pkgs.writeTextFile {
# name = "pass";
# text = "YFEAee2%9PuPcEKf$7vW$3a&wdvNJME%UkP2Z~RVkk4ZaQHYW^";
# }).outPath;
# upsmon = "primary";
# };
# upsmon.monitor."eaton" = {
# user = "eatonMon";
# };
};
2024-04-19 23:30:26 +02:00
services.prometheus.exporters.nut = {
enable = true;
listenAddress = "100.80.255.180";
port = 9199;
};
2024-04-19 21:10:14 +02:00
}