tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/r53-ddns: Add new option for record ttl
fleaz
10 months ago
d69eadeb
cf478129
+7
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
networking
r53-ddns.nix
+7
-1
nixos/modules/services/networking/r53-ddns.nix
···
41
41
'';
42
42
};
43
43
44
44
+
ttl = mkOption {
45
45
+
type = types.int;
46
46
+
description = "The TTL for the generated record";
47
47
+
};
48
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
71
-
+ lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}";
76
76
+
+ lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}"
77
77
+
+ lib.optionalString (cfg.ttl != null) " -ttl ${toString cfg.ttl}";
72
78
EnvironmentFile = "${cfg.environmentFile}";
73
79
DynamicUser = true;
74
80
};