fix: networking

This commit is contained in:
ryan4yin
2023-05-06 03:40:00 +08:00
parent 1b95d4945f
commit 90c61f0625
2 changed files with 13 additions and 6 deletions
+7 -1
View File
@@ -33,7 +33,9 @@
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
networkmanager.enable = true;
interfaces.ens18 = {
enableIPv6 = false; # disable ipv6
interfaces.enp5s0 = {
useDHCP = false;
ipv4.addresses = [ {
address = "192.168.5.66";
@@ -41,6 +43,10 @@
} ];
};
defaultGateway = "192.168.5.201";
nameservers = [
"119.29.29.29" # DNSPod
"223.5.5.5" # AliDNS
];
};