2023-06-23 09:25:35 -04:00
|
|
|
{lib, ...}: {
|
|
|
|
networking = {
|
|
|
|
nameservers = [
|
2024-01-15 01:09:34 -05:00
|
|
|
"9.9.9.9"
|
|
|
|
"149.112.112.112"
|
2023-06-23 09:25:35 -04:00
|
|
|
];
|
|
|
|
defaultGateway = "172.31.1.1";
|
|
|
|
defaultGateway6 = {
|
2023-11-29 23:04:57 -05:00
|
|
|
address = "";
|
2023-06-23 09:25:35 -04:00
|
|
|
interface = "eth0";
|
|
|
|
};
|
|
|
|
dhcpcd.enable = false;
|
|
|
|
usePredictableInterfaceNames = lib.mkForce false;
|
|
|
|
interfaces = {
|
|
|
|
eth0 = {
|
|
|
|
ipv4.addresses = [
|
|
|
|
{
|
2023-11-29 23:04:57 -05:00
|
|
|
address = "5.161.102.107";
|
2023-06-23 09:25:35 -04:00
|
|
|
prefixLength = 32;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
ipv4.routes = [
|
|
|
|
{
|
|
|
|
address = "172.31.1.1";
|
|
|
|
prefixLength = 32;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services.udev.extraRules = ''
|
2023-11-29 23:04:57 -05:00
|
|
|
ATTR{address}=="96:00:02:c2:dc:83", NAME="eth0"
|
2023-06-23 09:25:35 -04:00
|
|
|
'';
|
|
|
|
}
|