Configures UPS for NixOS server
This commit is contained in:
parent
7ae2b675b7
commit
a8207ffcb8
1 changed files with 18 additions and 0 deletions
|
|
@ -76,6 +76,7 @@
|
|||
jellyfin
|
||||
jellyfin-web
|
||||
jellyfin-ffmpeg
|
||||
usbutils
|
||||
];
|
||||
|
||||
# Programs
|
||||
|
|
@ -85,6 +86,23 @@
|
|||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
# UPS
|
||||
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";
|
||||
};
|
||||
|
||||
# Services
|
||||
# SSH
|
||||
services.openssh = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue