try again with bridge

This commit is contained in:
2023-12-03 21:37:53 +01:00
parent 75daf49c98
commit d8a94d3e5c
2 changed files with 12 additions and 5 deletions

View File

@@ -100,7 +100,9 @@ in
containers.gitea = {
autoStart = true;
ephemeral = true;
macvlans = [ "vserver" ];
# macvlans = [ "vserver" ];
hostBridge = "server";
localAddress = "10.42.97.1/24";
bindMounts = {
"/var/lib/gitea" = {
hostPath = "/var/lib/gitea/";
@@ -116,7 +118,7 @@ in
config = { lib, config, pkgs, ... }: {
networking = {
hostName = "fw";
interfaces.mv-vserver = {
interfaces.eth0 = {
useDHCP = true;
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
};