[fix] module.nix: actually use extraArgs

This commit is contained in:
Jalil David Salamé Messina 2024-06-02 15:52:49 +02:00
parent 0f2000ee7f
commit 46ce3e4a69
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -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 {