feat(upsd): Enabling upsd

This commit is contained in:
catvayor 2024-04-19 21:10:14 +02:00 committed by thubrecht
parent 20d3354a4d
commit f9de205aad
2 changed files with 22 additions and 0 deletions

View file

@ -10,6 +10,7 @@ lib.extra.mkConfig {
# List of services to enable
"k-radius"
"networking"
"ups"
];
extraConfig = {

21
machines/vault01/ups.nix Normal file
View file

@ -0,0 +1,21 @@
# { 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";
# };
};
}