types net: fix retiolum's ipv6 prefix

This commit is contained in:
tv 2021-11-21 13:47:53 +01:00
parent e250f85838
commit 3ddb425e39

View File

@ -135,11 +135,10 @@ rec {
};
prefix = mkOption ({
type = cidr4;
} // optionalAttrs (config._module.args.name == "retiolum") {
default = "10.243.0.0/16";
} // optionalAttrs (config._module.args.name == "wiregrill") {
default = "10.244.0.0/16";
});
} // {
retiolum.default = "10.243.0.0/16";
wiregrill.default = "10.244.0.0/16";
}.${config._module.args.name} or {});
};
});
default = null;
@ -153,11 +152,10 @@ rec {
};
prefix = mkOption ({
type = cidr6;
} // optionalAttrs (config._module.args.name == "retiolum") {
default = "42::/16";
} // optionalAttrs (config._module.args.name == "wiregrill") {
default = "42:1::/32";
});
} // {
retiolum.default = "42:0::/32";
wiregrill.default = "42:1::/32";
}.${config._module.args.name} or {});
};
});
default = null;