feat(dyndns): add additional secret and write dyndns script

This commit is contained in:
2026-02-09 13:14:04 +01:00
parent 68d27bb298
commit 7752b4da7d
4 changed files with 50 additions and 2 deletions
+5
View File
@@ -1,4 +1,5 @@
{
config,
pkgs,
...
}:
@@ -21,6 +22,10 @@
systemd.services."dyndns" = {
script = ''
NC_CUSTOMER=${"$(cat " + config.age.secrets.nc_customer.path + ")"}
NC_API_PASSWORD=${"$(cat " + config.age.secrets.nc_api_password.path + ")"}
NC_API_KEY=${"$(cat " + config.age.secrets.nc_api_key.path + ")"}
NC_DOMAIN=${"$(cat " + config.age.secrets.nc_domain.path + ")"}
python3 -c "${builtins.readFile ./dyndns.py}"
'';
serviceConfig = {