From 9b5a6c9bb8dde593428da4fbad141f7795670c8a Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 23 Jun 2023 15:24:47 +0200 Subject: [PATCH] Use latest version of ddclient --- modules/networking.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/networking.nix b/modules/networking.nix index 21aa8e8..eb8f635 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -1,6 +1,16 @@ { config, pkgs, lib, ... }: -let wireguard_port = 1194; +let + wireguard_port = 1194; + + latest-ddclient = pkgs.ddclient.overrideAttrs (old: rec { + src = pkgs.fetchFromGitHub { + owner = "ddclient"; + repo = "ddclient"; + rev = "3136871720a3c2abf730c9485edc351563765d0e"; + sha256 = "sha256-qb1DF0DaVbPgQokGx0t7VVk3pe3KuA8mNRPrBMzhWvU="; + }; + }); in { # Enable systemd-networkd @@ -38,6 +48,9 @@ in { services.ddclient = { enable = true; quiet = true; + use = "web, web=freedns"; + package = latest-ddclient; + interval = "30min"; protocol = "duckdns"; domains = [ "coolneng.duckdns.org" ]; passwordFile = config.age.secrets.ddclient.path;