nixos-hardware/purism/librem/5r4/wifi.nix
2023-09-03 07:29:12 +02:00

15 lines
360 B
Nix

{ config, pkgs, lib, ... }:
lib.mkIf (config.hardware.librem5.wifiCard == "redpine") {
# Disable mainline rsi module
boot.blacklistedKernelModules = [
"rsi_91x"
"rsi_sdio"
];
# Load redpine in Wi-Fi station + BT dual mode
boot.extraModprobeConfig = ''
options redpine_91x dev_oper_mode=13 rsi_zone_enabled=1 antenna_diversity=1
'';
}