[fix] module.nix: actually use extraArgs
This commit is contained in:
parent
0f2000ee7f
commit
46ce3e4a69
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,9 @@ in {
|
||||||
description = ''
|
description = ''
|
||||||
Extra arguments to be passed to the webnsupdate server command.
|
Extra arguments to be passed to the webnsupdate server command.
|
||||||
'';
|
'';
|
||||||
|
type = types.listOf types.str;
|
||||||
|
default = [];
|
||||||
|
example = ["--ip-source"];
|
||||||
};
|
};
|
||||||
bindIp = mkOption {
|
bindIp = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -117,7 +120,7 @@ in {
|
||||||
(builtins.toString cfg.bindPort)
|
(builtins.toString cfg.bindPort)
|
||||||
"--ttl"
|
"--ttl"
|
||||||
(builtins.toString cfg.ttl)
|
(builtins.toString cfg.ttl)
|
||||||
];
|
] ++ cfg.extraArgs;
|
||||||
cmd = "${lib.getExe pkgs.webnsupdate} ${args}";
|
cmd = "${lib.getExe pkgs.webnsupdate} ${args}";
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in a new issue