try macvlan again

This commit is contained in:
2023-12-04 11:50:24 +01:00
parent 5daf793143
commit 906725fb9b
3 changed files with 23 additions and 19 deletions

View File

@@ -101,10 +101,10 @@ in
extraFlags = [ "-U" ];
autoStart = true;
ephemeral = true;
# macvlans = [ "vserver" ];
privateNetwork = true;
hostBridge = "server";
localAddress = "10.42.97.2";
macvlans = [ "vserver" ];
# privateNetwork = true;
# hostBridge = "server";
# localAddress = "10.42.97.2";
bindMounts = {
"/var/lib/gitea" = {
hostPath = "/var/lib/gitea/";
@@ -120,9 +120,9 @@ in
config = { lib, config, pkgs, ... }: {
networking = {
hostName = "gitea";
interfaces.eth0 = {
useDHCP = true;
# ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
# interfaces.eth0.useDHCP = true;
interfaces.mv-vserver = {
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
};
# firewall = {
# enable = true;