mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-08 09:17:23 +08:00
34 lines
948 B
Nix
34 lines
948 B
Nix
{ lib, ... }: {
|
|
# This file was populated at runtime with the networking
|
|
# details gathered from the active system.
|
|
networking = {
|
|
nameservers = [
|
|
"8.8.8.8"
|
|
];
|
|
defaultGateway = "172.31.1.1";
|
|
defaultGateway6 = {
|
|
address = "fe80::1";
|
|
interface = "eth0";
|
|
};
|
|
dhcpcd.enable = false;
|
|
usePredictableInterfaceNames = lib.mkForce false;
|
|
interfaces = {
|
|
eth0 = {
|
|
ipv4.addresses = [
|
|
{ address = "5.161.184.111"; prefixLength = 32; }
|
|
];
|
|
ipv6.addresses = [
|
|
{ address = "2a01:4ff:f0:9d5a::1"; prefixLength = 64; }
|
|
{ address = "fe80::9400:3ff:fedc:b821"; prefixLength = 64; }
|
|
];
|
|
ipv4.routes = [{ address = "172.31.1.1"; prefixLength = 32; }];
|
|
ipv6.routes = [{ address = "fe80::1"; prefixLength = 128; }];
|
|
};
|
|
|
|
};
|
|
};
|
|
services.udev.extraRules = ''
|
|
ATTR{address}=="96:00:03:dc:b8:21", NAME="eth0"
|
|
|
|
'';
|
|
}
|