summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-12-30 17:51:23 +0100
committertv <tv@krebsco.de>2022-12-30 20:14:38 +0100
commit7d1347ef3dfa23df32168f8107e3523f6fe7835f (patch)
tree914a15b7a56caf34083335a7c34612081d9b061d /lib
parent78e2a32680d572b38d3df2d00170e5234c6e88f1 (diff)
lib.types.net.ip*: add prefixLength
Diffstat (limited to 'lib')
-rw-r--r--lib/types.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix
index 9f278c6..32b4541 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;