snowflake/hosts/sora/networking.nix
notohh 70a3623c74
All checks were successful
flake check / check (push) Successful in 4m2s
fmt check / check (push) Successful in 45s
hosts: update dns
2024-01-15 01:09:34 -05:00

35 lines
697 B
Nix

{lib, ...}: {
networking = {
nameservers = [
"9.9.9.9"
"149.112.112.112"
];
defaultGateway = "172.31.1.1";
defaultGateway6 = {
address = "";
interface = "eth0";
};
dhcpcd.enable = false;
usePredictableInterfaceNames = lib.mkForce false;
interfaces = {
eth0 = {
ipv4.addresses = [
{
address = "5.161.102.107";
prefixLength = 32;
}
];
ipv4.routes = [
{
address = "172.31.1.1";
prefixLength = 32;
}
];
};
};
};
services.udev.extraRules = ''
ATTR{address}=="96:00:02:c2:dc:83", NAME="eth0"
'';
}