main
nix 23 lines 498 Bytes
Raw
1 {
2 systemd.network = {
3 enable = true;
4 networks = {
5 "30-enp5s0" = {
6 matchConfig = {
7 MACAddress = "c8:7f:54:67:bd:31";
8 Type = "ether";
9 };
10 linkConfig.RequiredForOnline = true;
11 networkConfig.Description = "WAN";
12 address = [
13 "37.27.99.100/26"
14 "2a01:4f9:3070:15e0::1/64"
15 ];
16 routes = [
17 { Gateway = "37.27.99.65"; }
18 { Gateway = "fe80::1"; }
19 ];
20 };
21 };
22 };
23 }