From 504ec75c55c1ca3ec0c2059e4150f37a07e2c7a2 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sun, 7 Apr 2024 12:45:04 +0200 Subject: [PATCH] Override ddclient version --- hosts/nixos/lapetus/services/ddclient.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/nixos/lapetus/services/ddclient.nix b/hosts/nixos/lapetus/services/ddclient.nix index d1a1fdf..3c3f16d 100644 --- a/hosts/nixos/lapetus/services/ddclient.nix +++ b/hosts/nixos/lapetus/services/ddclient.nix @@ -1,5 +1,5 @@ # DDClient is a dynamic dns service -{ config, ... }: +{ config, pkgs, ... }: { imports = [ ../../common/optional/services/acme.nix ]; @@ -7,6 +7,16 @@ enable = true; interval = "1m"; configFile = config.sops.templates."ddclient.conf".path; + + # REASON: latest release doesn't support explicit root-domain annotations for porkbun + package = pkgs.ddclient.overrideAttrs (_: { + src = pkgs.fetchFromGitHub { + owner = "ddclient"; + repo = "ddclient"; + rev = "9885d55a3741363ad52d3463cb846d5782efb073"; + sha256 = "0zyi8h13y18vrlxavx1vva4v0ya5v08bxdxlr3is49in3maz2n37"; + }; + }); }; sops.templates."ddclient.conf".content = ''