try macvlan again
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user