blob: 4e0b78e8aeabe6dd8b99891697bf37ee69d06ca3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ lib, ... }: {
# This file was populated at runtime with the networking
# details gathered from the active system.
networking = {
nameservers = [
"127.0.0.53"
];
defaultGateway = "157.245.160.1";
defaultGateway6 = "";
dhcpcd.enable = false;
usePredictableInterfaceNames = lib.mkForce true;
interfaces = {
eth0 = {
ipv4.addresses = [
{ address="157.245.171.183"; prefixLength=20; }
{ address="10.46.0.8"; prefixLength=16; }
];
ipv6.addresses = [
{ address="fe80::f811:39ff:feea:ab32"; prefixLength=64; }
];
ipv4.routes = [ { address = "157.245.160.1"; prefixLength = 32; } ];
ipv6.routes = [ { address = ""; prefixLength = 32; } ];
};
};
};
services.udev.extraRules = ''
ATTR{address}=="fa:11:39:ea:ab:32", NAME="eth0"
'';
}
|