containers/emerald: enable ipv4 and provide internet access

This commit is contained in:
Cilly Leang 2026-03-18 02:59:12 +11:00
parent b3ffc41b76
commit 48db46051d
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -13,6 +13,10 @@
host = subnet 1;
client = subnet 2;
subnet4 = x: "10.30.${subnetId}.${toString x}";
host4 = subnet4 1;
client4 = subnet4 2;
modules = [
./configuration.nix
];
@ -21,6 +25,12 @@
inherit modules;
};
nixosModule = { ... }: {
networking.nat = {
enable = true;
enableIPv6 = true;
internalInterfaces = [ "ve-${name}" ];
};
services.nginx.virtualHosts."${fqdn}" = {
useACMEHost = "lava.moe";
forceSSL = true;
@ -38,6 +48,8 @@
containers.${name} = {
autoStart = true;
privateNetwork = true;
hostAddress = host4;
localAddress = client4;
hostAddress6 = host;
localAddress6 = client;
# privateUsers = "pick";