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";
zone = mkDefault config.networking.domain;
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 = [];
extraConfig = mkMerge [
(mkIf config.networking.enableIPv6 ''
usev6=webv6, webv6=https://ipv6.nsupdate.info/myip
'')
''
usev4=webv4, webv4=https://ipv4.nsupdate.info/myip
max-interval=1d
''
];
extraConfig = ''
max-interval=1d
'';
passwordFile = config.sops.secrets.dyndns_cloudflare_token.path;
};
systemd.services.ddclient = mkIf cfg.enable rec {