splits out server config into modules
This commit is contained in:
parent
8a8763d6b6
commit
ee99ab0565
9 changed files with 224 additions and 211 deletions
18
modules/ups/default.nix
Normal file
18
modules/ups/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue