chore: use auto-ip for microvms, change ipv6 address scheme

This commit is contained in:
oddlama 2023-05-29 02:13:35 +02:00
parent c789e2de36
commit d18e86f981
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 4 additions and 6 deletions

View file

@ -706,7 +706,7 @@ in {
};
macAcl = mkOption {
default = "allow";
default = "deny";
type = types.enum ["deny" "allow" "radius"];
apply = x:
getAttr x {

View file

@ -201,8 +201,6 @@
openFirewallRules = ["untrusted-to-local"];
};
linkName = "local-vms";
ipv4 = net.cidr.host vmCfg.id cfg.networking.wireguard.cidrv4;
ipv6 = net.cidr.host vmCfg.id cfg.networking.wireguard.cidrv6;
};
};
};
@ -246,7 +244,7 @@ in {
cidrv6 = mkOption {
type = net.types.cidrv6;
description = mdDoc "The ipv6 network address range to use for internal vm traffic.";
default = "fddd::/64";
default = "fd00:172:31::/120";
};
port = mkOption {