hippocampusnspawn/nixos-container: tailscale fix
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
authKeyFile = "/var/tailauth";
|
||||
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 = {
|
||||
networking.bridges = {
|
||||
"br0" = {
|
||||
interfaces = [];
|
||||
};
|
||||
};
|
||||
networking.interfaces.br0.ipv4.addresses = [{
|
||||
address = "10.0.0.1";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
# networking.bridges = {
|
||||
# "br0" = {
|
||||
# interfaces = [];
|
||||
# };
|
||||
# };
|
||||
# networking.interfaces.br0.ipv4.addresses = [{
|
||||
# address = "10.0.0.1";
|
||||
# prefixLength = 24;
|
||||
# }];
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
# 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";
|
||||
enableIPv6 = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user