summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-30 21:52:45 +0100
committerlassulus <lassulus@lassul.us>2022-12-30 21:52:45 +0100
commit96f27d2db0caf10fb1257f16f58e67484c8ca354 (patch)
tree961f24ea689a45061087ab27d26f79d487d23111 /lib
parent59a0ed177a437d4cce269183865b0dedd783ad0a (diff)
parent2ebbec1f2d9c16fe084abba87718d0f60e61bf88 (diff)
Merge remote-tracking branch 'ni/master'
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 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;