Compare commits

..

8 Commits

Author SHA1 Message Date
184e01767d update-openconcho-fork 2026-05-28 17:15:45 -04:00
c73fae7dc1 feat: add telos static site compose service (telos.lazyworkhorse.net) 2026-05-25 00:19:18 -04:00
e798c2f16b feat: add APC Back-UPS BVK1200M2 NUT configuration
Add power.ups module configuration for the APC Back-UPS BVK1200M2
connected via USB (vendor 051d, product 0002) in standalone mode.

- Driver: usbhid-ups with auto port detection
- upsd listening on localhost only
- upsmon configured as master for graceful shutdown
- Uses the built-in NixOS power.ups module
2026-05-25 00:15:58 -04:00
36359de6aa Merge pull request 'feat: add Syncthing firewall port and update compose submodule' (#47) from feat/syncthing-org-sync into master
Reviewed-on: #47
2026-05-19 00:34:42 +00:00
Robert
10b8565fd6 Merge branch 'master' into feat/syncthing-org-sync 2026-05-18 20:33:29 -04:00
Robert
f672696b8e Update submodule for syncthing 2026-05-18 20:31:07 -04:00
0980dca455 fix: update compose submodule to Traefik-routed Syncthing 2026-05-14 21:40:12 -04:00
96bc20ab70 feat: add Syncthing firewall port and update compose submodule 2026-05-14 21:36:26 -04:00
3 changed files with 40 additions and 10 deletions

View File

@@ -25,12 +25,3 @@ This document outlines the development conventions for this NixOS-based infrastr
- **Secrets:** Secrets are managed with `agenix`. Edit encrypted files with `agenix -e <file>`.
- **Modularity:** Structure configurations into logical, reusable modules under `modules/`. New modules should be registered in `modules/nixos/default.nix` to be available to all hosts.
- **Error Handling:** Ensure Nix expressions are robust and handle potential evaluation errors gracefully.
## Workflow
- New feature → clean branch from `origin/master` → push → PR on Gitea
- Branch naming: `feat/description` (features), `fix/description` (bugs/docs)
- Always branch from `origin/master`, never from another feature branch
- Submodule changes: commit submodule update in parent repo (the parent commit pins the submodule commit)
- PR title should describe the change; body should explain motivation + summary
- After PR merge, delete the feature branch

View File

@@ -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 = [ ... ];