Compare commits
3 Commits
feat/herme
...
feat/ups-c
| Author | SHA1 | Date | |
|---|---|---|---|
| 184e01767d | |||
| c73fae7dc1 | |||
| e798c2f16b |
Submodule assets/compose updated: d3f2e3b7b9...b185d43d67
@@ -342,6 +342,44 @@
|
|||||||
HIP_VISIBLE_DEVICES = "0,1";
|
HIP_VISIBLE_DEVICES = "0,1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# ── UPS (Uninterruptible Power Supply) ──────────────────────────────
|
||||||
|
# APC Back-UPS BVK1200M2 connected via USB (vendor 051d, product 0002)
|
||||||
|
power.ups = {
|
||||||
|
enable = true;
|
||||||
|
mode = "standalone";
|
||||||
|
|
||||||
|
ups = {
|
||||||
|
apc-backups = {
|
||||||
|
driver = "usbhid-ups";
|
||||||
|
port = "auto";
|
||||||
|
description = "APC Back-UPS BVK1200M2";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
upsd = {
|
||||||
|
listen = [{
|
||||||
|
address = "127.0.0.1";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
|
users = {
|
||||||
|
nutmon = {
|
||||||
|
passwordFile = pkgs.writeText "ups-nutmon-password" "ups-nutmon-2025";
|
||||||
|
upsmon = "primary";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
upsmon = {
|
||||||
|
monitor = {
|
||||||
|
apc-backups = {
|
||||||
|
system = "apc-backups@localhost";
|
||||||
|
user = "nutmon";
|
||||||
|
type = "master";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|||||||
Reference in New Issue
Block a user