netns: don't repeat cli definitions

1. Saves some code.
2. Guarantees that the netns and no-netns cli defs are always in sync.
This commit is contained in:
Erik Arvstedt
2020-08-25 11:40:27 +02:00
parent e385c73256
commit 9715134f06
6 changed files with 32 additions and 37 deletions
+7
View File
@@ -55,4 +55,11 @@ with lib;
set -eo pipefail
${src}
'';
cliExec = mkOption {
# Used by netns-isolation to execute the cli in the service's private netns
internal = true;
type = types.str;
default = "exec";
};
}