[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 = ''
Extra arguments to be passed to the webnsupdate server command.
'';
type = types.listOf types.str;
default = [];
example = ["--ip-source"];
};
bindIp = mkOption {
description = ''
@ -117,7 +120,7 @@ in {
(builtins.toString cfg.bindPort)
"--ttl"
(builtins.toString cfg.ttl)
];
] ++ cfg.extraArgs;
cmd = "${lib.getExe pkgs.webnsupdate} ${args}";
in
lib.mkIf cfg.enable {