diff --git a/modules/nixos/dyndns/default.nix b/modules/nixos/dyndns/default.nix index ecfd3b9..b6cbcfe 100644 --- a/modules/nixos/dyndns/default.nix +++ b/modules/nixos/dyndns/default.nix @@ -18,7 +18,7 @@ in { sops.templates."fritzbox-cloudflare-dyndns.env" = { owner = "fritzbox-cloudflare-dyndns"; content = '' - DYNDNS_SERVER_BIND=:8000 + DYNDNS_SERVER_BIND=8000 DYNDNS_SERVER_USERNAME=${config.sops.placeholder."dyndns/server-username"} DYNDNS_SERVER_PASSWORD=${config.sops.placeholder."dyndns/server-password"} CLOUDFLARE_API_TOKEN=${config.sops.placeholder.dyndns-cloudflare-api-token} diff --git a/packages/fritzbox-cloudflare-dyndns/default.nix b/packages/fritzbox-cloudflare-dyndns/default.nix index 56aa548..dd5d54b 100644 --- a/packages/fritzbox-cloudflare-dyndns/default.nix +++ b/packages/fritzbox-cloudflare-dyndns/default.nix @@ -1,6 +1,7 @@ { buildGoModule, fetchFromGitHub, + fetchpatch, ... }: buildGoModule rec { @@ -13,4 +14,10 @@ buildGoModule rec { sha256 = "sha256-T3YlQdrr+XJ4rlulmSyq9zeIu1iKNjggN+yhGYjvpw4="; }; vendorHash = "sha256-Gsoq+41J3aC43eDFZvqDtw5CaEmkeAKMmqOPttEJdhQ="; + patches = [ + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/cromefire/fritzbox-cloudflare-dyndns/pull/29.patch"; + sha256 = "sha256-gGD8NqDwh/2/Vj+I3DNg8MLI95gAt/dU/EDgfxhUHjQ="; + }) + ]; }