lol

nixos/r53-ddns: Add new option for record ttl

fleaz d69eadeb cf478129

+7 -1
+7 -1
nixos/modules/services/networking/r53-ddns.nix
··· 41 41 ''; 42 42 }; 43 43 44 + ttl = mkOption { 45 + type = types.int; 46 + description = "The TTL for the generated record"; 47 + }; 48 + 44 49 environmentFile = mkOption { 45 50 type = types.str; 46 51 description = '' ··· 68 73 serviceConfig = { 69 74 ExecStart = 70 75 "${pkg}/bin/r53-ddns -zone-id ${cfg.zoneID} -domain ${cfg.domain}" 71 - + lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}"; 76 + + lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}" 77 + + lib.optionalString (cfg.ttl != null) " -ttl ${toString cfg.ttl}"; 72 78 EnvironmentFile = "${cfg.environmentFile}"; 73 79 DynamicUser = true; 74 80 };