feat: add APC Back-UPS BVK1200M2 NUT configuration #70
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/ups-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Configures NUT (Network UPS Tools) via the NixOS built-in
power.upsmodule for the APC Back-UPS BVK1200M2 connected via USB.Changes
power.upsblock inhosts/lazyworkhorse/configuration.nixConfiguration details
usbhid-upsautostandalone(local monitoring only)127.0.0.1(not exposed to network)systemctl poweroffVerification required
After deploying (
nixos-rebuild switch --flake .#lazyworkhorse):upsc apc-backups@localhostupsdrvctl statusNotes
pkgs.writeText(acceptable for localhost-only standalone mode). For enhanced security, this could be migrated to agenix if network exposure is ever needed.openFirewallis not set, and upsd only listens on localhost.nutpackage (nut-2.8.4) is pulled automatically by thepower.upsmodule.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.