migrates dnsc-server
This commit is contained in:
parent
ac4074245c
commit
996dc27419
15 changed files with 318 additions and 9 deletions
22
modules/ups/default.nix
Normal file
22
modules/ups/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ ... }:
|
||||
{
|
||||
flake.modules.nixos.ups =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
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