feat: duck dns ipv6 updater
parent
3ecebeabcb
commit
873faf615a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue