diff options
author | Linnnus <[email protected]> | 2023-11-14 21:01:58 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-11-14 21:01:58 +0100 |
commit | 2f876a6275796dfbbb879cb434f10d321ffd1005 (patch) | |
tree | 52b9dd9f12aa1f1415aa6e29fec50490b3c84829 | |
parent | b4bf94155cd0947277023bf7fb7e3d6395cfc3e2 (diff) |
ahmed: Make DynDNS wait for network online
-rw-r--r-- | hosts/ahmed/configuration.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/ahmed/configuration.nix b/hosts/ahmed/configuration.nix index f987686..9fd4bd5 100644 --- a/hosts/ahmed/configuration.nix +++ b/hosts/ahmed/configuration.nix @@ -70,13 +70,19 @@ defaults.email = "linusvejlo+${config.networking.hostName}[email protected]"; }; - # Configure DDNS. The website for each module is responsible for extending `services.cloudflare-dyndns.domains` with its domain. + # Configure DDNS. The website for each module is responsible for extending + # `services.cloudflare-dyndns.domains` with its domain. age.secrets.cloudflare-dyndns-api-token.file = ../../secrets/cloudflare-ddns-token.env.age; services.cloudflare-dyndns = { enable = true; apiTokenFile = config.age.secrets.cloudflare-dyndns-api-token.path; proxied = true; }; + # We also have to overwrite the dependencies of the DYNDNS client service to + # make sure we are *actually* online. + # + # See: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget + systemd.services.cloudflare-dyndns.after = [ "network-online.target" ]; # Listen for HTTP connections. networking.firewall.allowedTCPPorts = [80 443]; |