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
|
||||||
jellyfin-web
|
jellyfin-web
|
||||||
jellyfin-ffmpeg
|
jellyfin-ffmpeg
|
||||||
|
usbutils
|
||||||
];
|
];
|
||||||
|
|
||||||
# Programs
|
# Programs
|
||||||
|
|
@ -85,6 +86,23 @@
|
||||||
enableSSHSupport = true;
|
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
|
# Services
|
||||||
# SSH
|
# SSH
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue