1
0
Fork 0

ups: init on argon

This commit is contained in:
Daniel Kempkens 2024-09-06 10:54:21 +02:00
parent 4f40866044
commit d2f32c75af
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 37 additions and 0 deletions

View file

@ -39,6 +39,10 @@
group = "mosquitto";
};
ups-primary-password = {
file = ./ups/primaryPassword.age;
};
weewx-proxy-environment = {
file = ./weewx-proxy/environment.age;
};

View 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² à·ü"*¼|Ì

View file

@ -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

View file

@ -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;