ups: init on argon
This commit is contained in:
parent
4f40866044
commit
d2f32c75af
4 changed files with 37 additions and 0 deletions
|
@ -39,6 +39,10 @@
|
|||
group = "mosquitto";
|
||||
};
|
||||
|
||||
ups-primary-password = {
|
||||
file = ./ups/primaryPassword.age;
|
||||
};
|
||||
|
||||
weewx-proxy-environment = {
|
||||
file = ./weewx-proxy/environment.age;
|
||||
};
|
||||
|
|
7
agenix/hosts/argon/ups/primaryPassword.age
Normal file
7
agenix/hosts/argon/ups/primaryPassword.age
Normal file
|
@ -0,0 +1,7 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 MtGp6g ZX57M5ki05gFAm/cIZIiqlX1by+eosXddvWln3y4nEM
|
||||
E/Ew7nB38f6RnMZMjg4J5/qFUmz2jJl11RiqEsi6Cd0
|
||||
-> ssh-ed25519 1fcLUQ 26z8R+YdIcdALuBorv2rboW25fDC7Xern/r8PCX8E00
|
||||
lr+KVKkgrU/zHg/nZAbZyzYIhe0euYeZy1kWzPK1MD4
|
||||
--- rA/LWzan74b4214noRwwzrtpR1sx4NK844K8pGFbEDk
|
||||
¶Ìß]5Öyì%¢:ã)û6¡<>2{KyˆNGÆ.xð·ê¸\Y² à·ü"*¼|Ì
|
|
@ -108,6 +108,8 @@ in
|
|||
|
||||
"agenix/hosts/argon/adguardhome-sync/environment.age".publicKeys = argon;
|
||||
|
||||
"agenix/hosts/argon/ups/primaryPassword.age".publicKeys = argon;
|
||||
|
||||
"agenix/hosts/argon/weewx-proxy/environment.age".publicKeys = argon;
|
||||
|
||||
# neon
|
||||
|
|
|
@ -189,6 +189,30 @@ in
|
|||
|
||||
services.hardware.argonone.enable = true;
|
||||
|
||||
power.ups = {
|
||||
enable = true;
|
||||
mode = "standalone";
|
||||
openFirewall = true;
|
||||
|
||||
ups.primary = {
|
||||
description = "APC Back-UPS BX - BX950U-GR";
|
||||
driver = "usbhid-ups";
|
||||
port = "auto";
|
||||
};
|
||||
|
||||
users.upsmon = {
|
||||
passwordFile = config.age.secrets.ups-primary-password.path;
|
||||
upsmon = "primary";
|
||||
};
|
||||
|
||||
upsd.listen = [
|
||||
{ address = "127.0.0.1"; }
|
||||
{ address = "10.0.0.5"; }
|
||||
];
|
||||
|
||||
upsmon.monitor.primary.user = "upsmon";
|
||||
};
|
||||
|
||||
programs = {
|
||||
fish.enable = true;
|
||||
zsh.enable = true;
|
||||
|
|
Loading…
Reference in a new issue