use ip
This commit is contained in:
parent
09379f901a
commit
31e3b526f1
1 changed files with 3 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ in
|
||||||
# macvlans = [ "vserver" ];
|
# macvlans = [ "vserver" ];
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostBridge = "server";
|
hostBridge = "server";
|
||||||
localAddress = "10.42.97.1/24";
|
localAddress = "10.42.97.2/24";
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/var/lib/gitea" = {
|
"/var/lib/gitea" = {
|
||||||
hostPath = "/var/lib/gitea/";
|
hostPath = "/var/lib/gitea/";
|
||||||
|
|
@ -118,10 +118,10 @@ in
|
||||||
};
|
};
|
||||||
config = { lib, config, pkgs, ... }: {
|
config = { lib, config, pkgs, ... }: {
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "fw";
|
hostName = "gitea";
|
||||||
interfaces.eth0 = {
|
interfaces.eth0 = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
|
# ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
|
||||||
};
|
};
|
||||||
# firewall = {
|
# firewall = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue