diff options
| author | Mel <mel@rnrd.eu> | 2025-03-22 04:28:55 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-03-22 04:28:55 +0100 |
| commit | f459a91de588a5647e60e6838eed8c76ccc1ebaa (patch) | |
| tree | 4112f61bb5b62bdefb21440cd77895dcec71921e /modules | |
| parent | 297a73421bb584cb92619efd6c4a6cf8c6fd9e3d (diff) | |
| download | network-f459a91de588a5647e60e6838eed8c76ccc1ebaa.tar.zst network-f459a91de588a5647e60e6838eed8c76ccc1ebaa.zip | |
Ignore ddclient service failures, to avoid IPv4 A record not being set breaking switching
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/ddns.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ddns.nix b/modules/ddns.nix index c24ac87..253e3e4 100644 --- a/modules/ddns.nix +++ b/modules/ddns.nix @@ -23,4 +23,12 @@ in domains = [ "${me.name}.${domain}" ]; passwordFile = config.age.secrets.cloudflare-dns.path; }; + + systemd.services.ddclient = { + # ddclient likes failing the whole process when + # one part of the operation did not succeed, like + # setting the A record, which i do not want anyway. + # treat these failures as a success: + serviceConfig.SuccessExitStatus = [ 0 1 ]; + }; } |
