blob: 46c581733eb86c8f115a638c8e49f34cef13587c (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
{lib, ...}: {
nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true;
boot.extraModprobeConfig = ''
options cfg80211 ieee80211_regdom="CZ"
'';
services.hostapd = {
enable = true;
radios = {
"wlp3s0" = {
channel = 7;
countryCode = "CZ";
wifi4 = {
enable = true;
inherit (lib.hostapd.qualcomAtherosAR9287.wifi4) capabilities;
};
networks = {
"wlp3s0" = {
ssid = "NixOSInstallFest";
bssid = "12:f0:21:23:2b:00";
authentication = {
mode = "wpa2-sha256";
wpaPassword = "InstallFest2024";
};
};
"wlp3s0.guest" = {
ssid = "NixOSInstallFest-guest";
bssid = "12:f0:21:23:2b:01";
authentication.mode = "none";
};
};
};
"wlp2s0" = {
channel = 36;
band = "5g";
countryCode = "CZ";
wifi4 = {
enable = true;
inherit (lib.hostapd.qualcomAtherosQCA988x.wifi4) capabilities;
};
wifi5 = {
enable = true;
inherit (lib.hostapd.qualcomAtherosQCA988x.wifi5) capabilities;
};
networks = {
"wlp2s0" = {
ssid = "NixOSInstallFest5";
bssid = "12:f0:21:23:2b:02";
authentication = {
mode = "wpa2-sha256";
wpaPassword = "InstallFest2024";
};
};
"wlp2s0.guest" = {
ssid = "NixOSInstallFest-guest";
bssid = "12:f0:21:23:2b:03";
authentication.mode = "none";
};
};
};
};
};
systemd.network.networks = {
"lan-wlp3s0" = {
matchConfig.Name = "wlp3s0";
networkConfig.Bridge = "brlan";
bridgeVLANs = [
{
bridgeVLANConfig = {
EgressUntagged = 1;
PVID = 1;
};
}
];
};
"lan-wlp3s0.guest" = {
matchConfig.Name = "wlp3s0.guest";
networkConfig.Bridge = "brlan";
bridgeVLANs = [
{
bridgeVLANConfig = {
EgressUntagged = 2;
PVID = 2;
};
}
];
};
"lan-wlp2s0" = {
matchConfig.Name = "wlp2s0";
networkConfig.Bridge = "brlan";
bridgeVLANs = [
{
bridgeVLANConfig = {
EgressUntagged = 1;
PVID = 1;
};
}
];
};
"lan-wlp2s0.guest" = {
matchConfig.Name = "wlp2s0.guest";
networkConfig.Bridge = "brlan";
bridgeVLANs = [
{
bridgeVLANConfig = {
EgressUntagged = 2;
PVID = 2;
};
}
];
};
};
}
|