Compare commits
2 Commits
feat/ups-c
...
feat/compo
| Author | SHA1 | Date | |
|---|---|---|---|
| 262d329988 | |||
| 25281cc5b7 |
Submodule assets/compose updated: b185d43d67...6b82a26c25
@@ -207,7 +207,6 @@
|
||||
ai = {
|
||||
path = self + "/assets/compose/ai";
|
||||
envFile = config.age.secrets.containers_env.path;
|
||||
ports = [ 22000 ]; # Syncthing TCP sync
|
||||
};
|
||||
|
||||
cloudstorage = {
|
||||
@@ -342,44 +341,6 @@
|
||||
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 = [ ... ];
|
||||
@@ -513,7 +474,7 @@
|
||||
services.openssh.settings = {
|
||||
PermitRootLogin = "no";
|
||||
MaxAuthTries = 3;
|
||||
MaxSessions = 20;
|
||||
MaxSessions = 10;
|
||||
LoginGraceTime = 30;
|
||||
ClientAliveInterval = 300;
|
||||
ClientAliveCountMax = 2;
|
||||
|
||||
Reference in New Issue
Block a user