diff --git a/configuration.nix b/configuration.nix index f4e9c2c..8980413 100644 --- a/configuration.nix +++ b/configuration.nix @@ -396,6 +396,15 @@ systemd.timers.dynamic-dns-updater = { timerConfig.RandomizedDelaySec = "15m"; }; + systemd.services.dynamic-dns-updater6 = { + serviceConfig.User = "dynamicdns"; + path = [ pkgs.curl ]; + script = "curl --silent --url-query domains=samsehuperli --url-query token@${config.age.secrets.samsehu_DUCK_DNS_TOKEN.path} --url-query ipv6=$(ip -j -6 addr show scope global | jq -r .[0].addr_info.[0].local) https://www.duckdns.org/update"; + startAt = "hourly"; + }; + systemd.timers.dynamic-dns-updater6 = { + timerConfig.RandomizedDelaySec = "15m"; + }; # Next cloud setup services.nginx.enable = false;