hippocampusnspawn/nixos-container: tailscale fix

This commit is contained in:
2026-04-20 16:52:42 -04:00
parent d112213b5d
commit 09e1b22f5d

View File

@@ -25,6 +25,8 @@
authKeyFile = "/var/tailauth"; authKeyFile = "/var/tailauth";
extraUpFlags = ["--login-server" "${authServer}"]; extraUpFlags = ["--login-server" "${authServer}"];
}; };
# Resolves https://github.com/NixOS/nixpkgs/issues/430756
systemd.services.tailscaled-autoconnect.serviceConfig.Type = lib.mkForce "simple";
}; };
}; };
@@ -59,19 +61,19 @@ in {
}; };
config = { config = {
networking.bridges = { # networking.bridges = {
"br0" = { # "br0" = {
interfaces = []; # interfaces = [];
}; # };
}; # };
networking.interfaces.br0.ipv4.addresses = [{ # networking.interfaces.br0.ipv4.addresses = [{
address = "10.0.0.1"; # address = "10.0.0.1";
prefixLength = 24; # prefixLength = 24;
}]; # }];
networking.nat = { networking.nat = {
enable = true; enable = true;
# Check for hostBridge use vb instead of ve # Check for hostBridge use vb instead of ve
internalInterfaces = (map (n: "vb-${n}") (attrNames cfg.containers)) ++ ["br0"]; internalInterfaces = (map (n: "ve-${n}") (attrNames cfg.containers));
externalInterface = "enp0s25"; externalInterface = "enp0s25";
enableIPv6 = true; enableIPv6 = true;
}; };