diff --git a/flake.lock b/flake.lock index 16108da..58a6f10 100644 --- a/flake.lock +++ b/flake.lock @@ -202,11 +202,11 @@ }, "secrets": { "locked": { - "lastModified": 1762546175, - "narHash": "sha256-ZYhCCN6dUlRoyzqFaU3oIG85NQZ2QwrOle8ZwlPorg0=", + "lastModified": 1762547267, + "narHash": "sha256-bDYmYBJxtsSES+gcpHfpnURA7QDJ3cC1Mg2jzQl5zdg=", "ref": "refs/heads/main", - "rev": "774bacddc5d28ea3083d6e31a29549bbe738418b", - "revCount": 16, + "rev": "601b97ba998f743a333fe7523dd5825816155778", + "revCount": 17, "type": "git", "url": "ssh://gitea@git.bulthuis.dev/Jan/nixos-secrets" }, diff --git a/hosts/vm-infra/configuration.nix b/hosts/vm-infra/configuration.nix index 3a646f3..642d5ad 100644 --- a/hosts/vm-infra/configuration.nix +++ b/hosts/vm-infra/configuration.nix @@ -28,15 +28,20 @@ prefixLength = 16; }; }; - ipv6 = { - address = "${inputs.secrets.lab.network.ula.prefixBase}::6464"; - router = { - address = "64::ff9b::1"; + ipv6 = + let + ula = inputs.secrets.lab.network.ula.prefixBase; + net = toString inputs.secrets.lab.network.vlan.lab; + in + { + address = "${ula}:${net}::6464"; + router = { + address = "64::ff9b::1"; + }; + pool = { + address = "64:ff9b::"; + prefixLength = 96; + }; }; - pool = { - address = "64:ff9b::"; - prefixLength = 96; - }; - }; }; }