try macvlan again
This commit is contained in:
parent
5daf793143
commit
906725fb9b
3 changed files with 23 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue