From 873faf615a80c3242ef2edd6ddcf09df1e46d103 Mon Sep 17 00:00:00 2001 From: geemili Date: Sun, 4 Feb 2024 15:57:53 -0700 Subject: [PATCH] feat: duck dns ipv6 updater --- configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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;