1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-05 10:39:42 +01:00
nixos-hardware/microsoft/surface/firmware/surface-go/ath10k/default.nix
mexisme 98d19435d0 Rename cfg option from "enable" --> "replace"
- Allows for @qzed's kernel patch: 22ef83836c
2021-03-06 15:38:17 +13:00

22 lines
558 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.hardware.microsoft-surface.firmware.surface-go-ath10k;
in
{
options = {
hardware.microsoft-surface.firmware.surface-go-ath10k = {
replace = lib.mkEnableOption ''Use the "board.bin" firmware for ath10k-based WiFi on Surface Go.'';
};
};
config = lib.mkIf cfg.replace {
hardware.enableAllFirmware = true;
hardware.firmware = [
(pkgs.callPackage ./ath10k-replace.nix {})
];
boot.extraModprobeConfig = lib.mkDefault ''
options ath10k_core skip_otp=Y
'';
};
}