knot: sourcephile.fr: setup lebureau as a secondary NS
[sourcephile-nix.git] / hosts / losurdo / networking / nsupdate.nix
index a15729feec522eb23d8869abca6715b63ecc332d..d5a53f8b747fc2777b6ea015510b1dc44c0c2f16 100644 (file)
@@ -10,7 +10,9 @@ in
     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 ||