splits out server config into modules

This commit is contained in:
Dennis Schoepf 2025-05-29 18:44:12 +02:00
parent 8a8763d6b6
commit ee99ab0565
9 changed files with 224 additions and 211 deletions

18
modules/ups/default.nix Normal file
View file

@ -0,0 +1,18 @@
{
power.ups = {
enable = true;
ups."eaton-ups" = {
driver = "usbhid-ups";
port = "auto";
};
users.upsmon = {
passwordFile = "/etc/upsmon.passwd";
upsmon = "primary";
};
upsmon.monitor."eaton-ups".user = "upsmon";
};
}