diff options
author | tv <tv@krebsco.de> | 2022-12-30 17:51:23 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-12-30 20:14:38 +0100 |
commit | 4adca5a98417c089e36d27f5a33c454d3d4ff3d8 (patch) | |
tree | 3a51d8ad2b9304c2549e4ccf21570e416ad9a8b2 | |
parent | 4a1bec5d9b6d2730a60ed332214159a86a27f319 (diff) |
lib.types.net.ip*: add prefixLength
-rw-r--r-- | lib/types.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix index 9f278c650..32b4541ae 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -146,6 +146,14 @@ rec { }.${config._module.args.name} or { default = "${ip4.config.addr}/32"; }); + prefixLength = mkOption ({ + type = uint; + } // { + retiolum.default = 16; + wiregrill.default = 16; + }.${config._module.args.name} or { + default = 32; + }); }; })); default = null; @@ -165,6 +173,14 @@ rec { }.${config._module.args.name} or { default = "${ip6.config.addr}/128"; }); + prefixLength = mkOption ({ + type = uint; + } // { + retiolum.default = 32; + wiregrill.default = 32; + }.${config._module.args.name} or { + default = 128; + }); }; })); default = null; |