From 6abaa4d7d87a9227512518622e16ce6c3c2cdfa5 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 4 Oct 2024 13:36:17 +0200 Subject: [PATCH] modules (dyndns): Test fix for server not exiting in case of problem with bind See https://github.com/cromefire/fritzbox-cloudflare-dyndns/pull/29/ --- modules/nixos/dyndns/default.nix | 2 +- packages/fritzbox-cloudflare-dyndns/default.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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="; + }) + ]; }