verbena: configure IPv6 from tofu outputs

This commit is contained in:
2025-11-21 21:15:35 +01:00
parent 3834f215f0
commit abaf429a38
4 changed files with 58 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
{ self, lib, ... }:
let
tf_outputs = builtins.fromJSON (builtins.readFile ../../infra/outputs.json);
in
{
imports = [
self.nixosModules.nix-defaults
@@ -16,6 +19,19 @@
networking.useDHCP = lib.mkDefault true;
networking.defaultGateway6 = {
address = tf_outputs.verbena_gateway6.value;
interface = "ens3";
};
networking.interfaces."ens3" = {
ipv6.addresses = [
{
address = tf_outputs.verbena_ipv6.value;
prefixLength = 64;
}
];
};
clan.core.settings.state-version.enable = true;
services.nginx = {