main
nix 26 lines 546 Bytes
Raw
1 {
2 systemd.network = {
3 enable = true;
4 networks = {
5 "30-enp35s0" = {
6 matchConfig = {
7 MACAddress = "a8:a1:59:04:71:f5";
8 Type = "ether";
9 };
10 address = [
11 "46.4.89.205/27"
12 "2a01:4f8:212:41c9::1/64"
13 ];
14 routes = [
15 { Gateway = "46.4.89.193"; }
16 { Gateway = "fe80::1"; }
17 ];
18 vlan = [
19 "vlan4000"
20 ];
21 networkConfig.Description = "WAN";
22 linkConfig.RequiredForOnline = true;
23 };
24 };
25 };
26 }