2022-12-04 13:45:43 +00:00
|
|
|
{...}: {
|
2022-11-23 15:58:12 +00:00
|
|
|
systemd.services.systemd-networkd-wait-online.enable = false;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
resolvconf.useLocalResolver = false;
|
|
|
|
networkmanager.dns = "none";
|
|
|
|
};
|
2022-12-04 13:45:43 +00:00
|
|
|
networking.nameservers = ["1.1.1.1"];
|
2022-11-23 15:58:12 +00:00
|
|
|
|
|
|
|
networking.firewall.enable = true;
|
|
|
|
networking.firewall.allowPing = true;
|
2022-12-04 13:45:43 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [22];
|
2022-11-23 15:58:12 +00:00
|
|
|
|
|
|
|
networking.enableIPv6 = true;
|
|
|
|
networking.usePredictableInterfaceNames = false;
|
|
|
|
networking.dhcpcd.enable = false;
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks.eth0 = {
|
|
|
|
name = "eth0";
|
2022-12-04 13:45:43 +00:00
|
|
|
address = ["144.76.97.18"];
|
|
|
|
gateway = ["144.76.97.1"];
|
2022-11-23 15:58:12 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|