1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00
nixos-hardware/purism/librem/5r4/wifi.nix

15 lines
354 B
Nix
Raw Normal View History

2023-12-25 21:14:17 +01:00
{ config, lib, ... }:
2023-02-13 23:23:27 +01:00
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
'';
}