diff --git a/modules/clan/router/wifi.nix b/modules/clan/router/wifi.nix index fe8e2cf..6ab5ffe 100644 --- a/modules/clan/router/wifi.nix +++ b/modules/clan/router/wifi.nix @@ -120,6 +120,13 @@ in ); message = "router: wifi.radios..macAddress is required for radios broadcasting more than one network."; } + { + assertion = + !config.networking.wireless.enable + && !config.networking.wireless.iwd.enable + && !config.networking.networkmanager.enable; + message = "router: wifi.enable needs the radios for hostapd; disable networking.wireless (wpa_supplicant), iwd and NetworkManager."; + } ]; # Regulatory database for the kernel, so countryCode actually applies.