diff options
-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]; |