26 lines
636 B
Nix
26 lines
636 B
Nix
{lib, ...}: {
|
|
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
|
|
|
networking = {
|
|
resolvconf.useLocalResolver = false;
|
|
networkmanager.dns = "none";
|
|
};
|
|
networking.nameservers = ["1.1.1.1"];
|
|
|
|
networking.firewall.enable = true;
|
|
networking.firewall.allowPing = true;
|
|
networking.firewall.allowedTCPPorts = [22];
|
|
|
|
networking.enableIPv6 = true;
|
|
networking.usePredictableInterfaceNames = false;
|
|
networking.dhcpcd.enable = false;
|
|
systemd.network = {
|
|
enable = true;
|
|
networks.eth0 = {
|
|
name = "eth0";
|
|
address = ["144.76.97.18"];
|
|
gateway = ["144.76.97.1"];
|
|
};
|
|
};
|
|
}
|