startAt = "*:0/5"; # every 5 min
serviceConfig = {
Type = "simple";
- LoadCredentialEncrypted = [ "${hostName}.${domain}.tsig:${inputs.self}/hosts/${hostName}/networking/nsupdate/${domain}/tsig.cred" ];
+ LoadCredentialEncrypted = [
+ "${hostName}.${domain}.tsig:${./nsupdate +"/${domain}/tsig.cred"}"
+ ];
ExecStart = pkgs.writeShellScript "nsupdate" ''
set -eux
publicIPv4=$(${pkgs.curl}/bin/curl -s4 https://whoami.sourcephile.fr/addr ||