forked from dan/liminix
1
0
Fork 0

rename wlan services for devices with > 1 radio

let's standardise on having 2.4GHz radio be "wlan", and
5GHz as "wlan5"
This commit is contained in:
Daniel Barlow 2023-10-07 22:23:44 +01:00
parent caf8e85061
commit a896c4e31c
2 changed files with 7 additions and 5 deletions

View File

@ -123,11 +123,11 @@
in {
lan = link.build { ifname = "eth0"; };
wan = link.build { ifname = "eth1"; };
wlan_24 = link.build {
wlan = link.build {
ifname = "wlan0";
dependencies = [ mac80211 ];
};
wlan_5 = link.build {
wlan5 = link.build {
ifname = "wlan1";
dependencies = [ mac80211 ath10k_cal_data ];
};

View File

@ -49,7 +49,7 @@ in rec {
hostname = "rotuer";
services.hostap = svc.hostapd.build {
interface = config.hardware.networkInterfaces.wlan_24;
interface = config.hardware.networkInterfaces.wlan;
params = {
ssid = "liminix";
hw_mode="g";
@ -59,7 +59,7 @@ in rec {
};
services.hostap5 = svc.hostapd.build {
interface = config.hardware.networkInterfaces.wlan_5;
interface = config.hardware.networkInterfaces.wlan5;
params = rec {
ssid = "liminix_5";
hw_mode="a";
@ -79,7 +79,9 @@ in rec {
services.bridge = svc.bridge.members.build {
primary = services.int;
members = with config.hardware.networkInterfaces;
[ wlan_24 wlan_5 lan ];
[ wlan
wlan5
lan ];
};
services.ntp = svc.ntp.build {