blob: 9bdc3d364c54fcaacdb993ee750dd6160e378069 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
config,
lib,
pkgs,
...
}:
with lib; {
config = {
cynerd = {
router = {
enable = true;
wan = "end2";
lanIP = "192.168.2.1";
};
wifiAP.spt = {
enable = true;
ar9287.interface = "wlp3s0";
qca988x.interface = "wlp2s0";
};
monitoring.speedtest = true;
};
networking.useDHCP = false;
systemd.network = {
networks = {
"end2" = {
matchConfig.Name = "end2";
networkConfig = {
BindCarrier = "end2";
DHCP = "yes";
IPv6AcceptRA = "yes";
DHCPPrefixDelegation = "yes";
};
dhcpPrefixDelegationConfig = {
UplinkInterface = ":self";
SubnetId = 0;
Announce = "no";
};
linkConfig.RequiredForOnline = "routable";
};
"lan-brlan" = {
matchConfig.Name = "lan*";
networkConfig.Bridge = "brlan";
bridgeVLANs = [
{
bridgeVLANConfig = {
EgressUntagged = 1;
PVID = 1;
};
}
{bridgeVLANConfig.VLAN = 2;}
];
};
};
};
};
}
|