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

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