Compare commits
14 Commits
0c9c33d735
...
feat/ups-c
| Author | SHA1 | Date | |
|---|---|---|---|
| 184e01767d | |||
| c73fae7dc1 | |||
| e798c2f16b | |||
| 36359de6aa | |||
|
|
10b8565fd6 | ||
|
|
f672696b8e | ||
| 0980dca455 | |||
| 96bc20ab70 | |||
| 670ae4f002 | |||
| f785abfd49 | |||
| 6f44aa7f76 | |||
| 8d40f1691f | |||
|
|
2dd2e64986 | ||
|
|
23fc5e0597 |
Submodule assets/compose updated: 2bf31c7ccc...b185d43d67
@@ -207,6 +207,7 @@
|
||||
ai = {
|
||||
path = self + "/assets/compose/ai";
|
||||
envFile = config.age.secrets.containers_env.path;
|
||||
ports = [ 22000 ]; # Syncthing TCP sync
|
||||
};
|
||||
|
||||
cloudstorage = {
|
||||
@@ -341,6 +342,44 @@
|
||||
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.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
@@ -474,7 +513,7 @@
|
||||
services.openssh.settings = {
|
||||
PermitRootLogin = "no";
|
||||
MaxAuthTries = 3;
|
||||
MaxSessions = 10;
|
||||
MaxSessions = 20;
|
||||
LoginGraceTime = 30;
|
||||
ClientAliveInterval = 300;
|
||||
ClientAliveCountMax = 2;
|
||||
|
||||
Reference in New Issue
Block a user