chore(ddclient): update config

This commit is contained in:
arcnmx 2024-06-09 16:09:55 -07:00
parent f24b9582f7
commit 45b42e5226

View file

@ -14,16 +14,12 @@ in {
protocol = mkDefault "cloudflare"; protocol = mkDefault "cloudflare";
zone = mkDefault config.networking.domain; zone = mkDefault config.networking.domain;
use = "no"; use = "no";
usev6 = mkIf config.networking.enableIPv6 (mkDefault "webv6, webv6=https://ipv6.nsupdate.info/myip");
usev4 = mkDefault "webv4, webv6=https://ipv6.nsupdate.info/myip";
domains = []; domains = [];
extraConfig = mkMerge [ extraConfig = ''
(mkIf config.networking.enableIPv6 '' max-interval=1d
usev6=webv6, webv6=https://ipv6.nsupdate.info/myip '';
'')
''
usev4=webv4, webv4=https://ipv4.nsupdate.info/myip
max-interval=1d
''
];
passwordFile = config.sops.secrets.dyndns_cloudflare_token.path; passwordFile = config.sops.secrets.dyndns_cloudflare_token.path;
}; };
systemd.services.ddclient = mkIf cfg.enable rec { systemd.services.ddclient = mkIf cfg.enable rec {