feat(upsd): Enabling upsd
This commit is contained in:
parent
20d3354a4d
commit
f9de205aad
2 changed files with 22 additions and 0 deletions
|
@ -10,6 +10,7 @@ lib.extra.mkConfig {
|
||||||
# List of services to enable
|
# List of services to enable
|
||||||
"k-radius"
|
"k-radius"
|
||||||
"networking"
|
"networking"
|
||||||
|
"ups"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
21
machines/vault01/ups.nix
Normal file
21
machines/vault01/ups.nix
Normal 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";
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue