From cf4781291c75a6c0df6da51cef68969ae8101842 Mon Sep 17 00:00:00 2001 From: fleaz Date: Wed, 7 May 2025 22:22:50 +0200 Subject: [PATCH 1/2] r53-ddns: 1.1.0 -> 1.3.0 --- pkgs/by-name/r5/r53-ddns/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/r5/r53-ddns/package.nix b/pkgs/by-name/r5/r53-ddns/package.nix index 548f5c062886..7689d1b02417 100644 --- a/pkgs/by-name/r5/r53-ddns/package.nix +++ b/pkgs/by-name/r5/r53-ddns/package.nix @@ -6,16 +6,16 @@ buildGoModule rec { pname = "r53-ddns"; - version = "1.1.0"; + version = "1.3.0"; src = fetchFromGitHub { owner = "fleaz"; repo = "r53-ddns"; rev = "v${version}"; - sha256 = "sha256-KJAPhSGaC3upWLfo2eeSD3Vit9Blmbol7s8y3f849N4="; + sha256 = "sha256-+vJrcRxckAISYjab6kVT2mpChra1D3NflOqNWCch15I="; }; - vendorHash = "sha256-KkyMd94cejWkgg/RJudy1lm/M3lsEJXFGqVTzGIX3qM="; + vendorHash = "sha256-ImV/jxCYIWObN+jCSbXhuzR4TuRc/EgQ8SIV6x+wEpA="; meta = with lib; { license = licenses.mit; From d69eadeb94c291d73bc448d715bdb5c07a22a563 Mon Sep 17 00:00:00 2001 From: fleaz Date: Wed, 7 May 2025 22:23:19 +0200 Subject: [PATCH 2/2] nixos/r53-ddns: Add new option for record ttl --- nixos/modules/services/networking/r53-ddns.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/r53-ddns.nix b/nixos/modules/services/networking/r53-ddns.nix index 6ca8499fe7e6..425b8cb84ca3 100644 --- a/nixos/modules/services/networking/r53-ddns.nix +++ b/nixos/modules/services/networking/r53-ddns.nix @@ -41,6 +41,11 @@ in ''; }; + ttl = mkOption { + type = types.int; + description = "The TTL for the generated record"; + }; + environmentFile = mkOption { type = types.str; description = '' @@ -68,7 +73,8 @@ in serviceConfig = { ExecStart = "${pkg}/bin/r53-ddns -zone-id ${cfg.zoneID} -domain ${cfg.domain}" - + lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}"; + + lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}" + + lib.optionalString (cfg.ttl != null) " -ttl ${toString cfg.ttl}"; EnvironmentFile = "${cfg.environmentFile}"; DynamicUser = true; };