22 lines
459 B
Nix
22 lines
459 B
Nix
|
# { 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";
|
||
|
# };
|
||
|
};
|
||
|
}
|