Uninterruptible power supply: Difference between revisions
m Category:Hardware added |
Robotron2084 (talk | contribs) m Added a comment to explain what the contents of passwordFile should contain. Paths to internal nix resources will throw an error, modified passwordFile to be to an absolute path instead. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 25: | Line 25: | ||
needs a new battery every four years, under optimal operating | needs a new battery every four years, under optimal operating | ||
conditions. | conditions. | ||
= Components of NUT Software = | = Components of NUT Software = | ||
| Line 140: | Line 132: | ||
# declarations. upsd.users | # declarations. upsd.users | ||
users."nut-admin" = { | users."nut-admin" = { | ||
passwordFile = " | # A file that contains just the password. | ||
passwordFile = "/etc/nixos/ups-passwd.txt"; | |||
upsmon = "primary"; | upsmon = "primary"; | ||
}; | }; | ||
| Line 155: | Line 148: | ||
powerValue = 1; | powerValue = 1; | ||
user = "nut-admin"; | user = "nut-admin"; | ||
passwordFile = " | passwordFile = "/etc/nixos/ups-passwd.txt"; | ||
type = "primary"; | type = "primary"; | ||
}; | }; | ||