simplify hetzner api key handling on freun-dev

This commit is contained in:
Joakim Repomaa
2025-06-16 19:39:10 +03:00
parent 8acda612dc
commit 82298cfb4d
3 changed files with 2 additions and 3 deletions

View File

@@ -17,7 +17,6 @@
"vaultwarden" "vaultwarden"
"donetick" "donetick"
"dnote" "dnote"
"octodns"
"mealie" "mealie"
"mosquitto/homie" "mosquitto/homie"
"mosquitto/telegraf" "mosquitto/telegraf"

View File

@@ -179,7 +179,7 @@ let
}; };
hetzner = { hetzner = {
class = "octodns_hetzner.HetznerProvider"; class = "octodns_hetzner.HetznerProvider";
token = "env/HETZNER_TOKEN"; token = "env/HETZNER_API_KEY";
}; };
}; };
@@ -214,7 +214,7 @@ in
Type = "oneshot"; Type = "oneshot";
ExecStart = "${octodns}/bin/octodns-sync --config-file ${configFile} --doit"; ExecStart = "${octodns}/bin/octodns-sync --config-file ${configFile} --doit";
DynamicUser = true; DynamicUser = true;
EnvironmentFile = secrets.octodns.path; EnvironmentFile = secrets.hetzner.path;
RemainAfterExit = true; RemainAfterExit = true;
}; };
wantedBy = lib.optionals config.services.nginx.enable [ "nginx.service" ]; wantedBy = lib.optionals config.services.nginx.enable [ "nginx.service" ];

Binary file not shown.