try with dhcp

This commit is contained in:
2023-12-04 12:44:58 +01:00
parent 3befd4ebb8
commit f5a2793533

View File

@@ -119,10 +119,10 @@ in
config = { lib, config, pkgs, ... }: { config = { lib, config, pkgs, ... }: {
networking = { networking = {
# hostName = "gitea"; # hostName = "gitea";
# interfaces.eth0.useDHCP = true; interfaces.mv-vserver.useDHCP = true;
interfaces.mv-vserver = { # interfaces.mv-vserver = {
ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ]; # ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ];
}; # };
# firewall = { # firewall = {
# enable = true; # enable = true;
# allowedTCPPorts = [ 22 80 443 ]; # allowedTCPPorts = [ 22 80 443 ];