nixos/r53-ddns: Add new option for record ttl
This commit is contained in:
@@ -41,6 +41,11 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ttl = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
description = "The TTL for the generated record";
|
||||||
|
};
|
||||||
|
|
||||||
environmentFile = mkOption {
|
environmentFile = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
@@ -68,7 +73,8 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${pkg}/bin/r53-ddns -zone-id ${cfg.zoneID} -domain ${cfg.domain}"
|
"${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}";
|
EnvironmentFile = "${cfg.environmentFile}";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user