mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) mkDefault mkEnableOption mkIf;
|
||||
|
||||
cfg = config.hardware.microsoft-surface.firmware.surface-go-ath10k;
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
hardware.microsoft-surface.firmware.surface-go-ath10k = {
|
||||
replace = mkEnableOption ''Use the "board.bin" firmware for ath10k-based WiFi on Surface Go.'';
|
||||
@@ -13,18 +19,21 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.replace {
|
||||
warnings = [''A working version of the ath10k QCA6174 firmware has been added to the kernel.org linux-firmware
|
||||
repo, making this fix obsolete.
|
||||
See:
|
||||
- https://github.com/linux-surface/linux-surface/issues/542#issuecomment-976995453
|
||||
- https://github.com/linux-surface/linux-surface/wiki/Surface-Go#wi-fi-firmware
|
||||
warnings = [
|
||||
''
|
||||
A working version of the ath10k QCA6174 firmware has been added to the kernel.org linux-firmware
|
||||
repo, making this fix obsolete.
|
||||
See:
|
||||
- https://github.com/linux-surface/linux-surface/issues/542#issuecomment-976995453
|
||||
- https://github.com/linux-surface/linux-surface/wiki/Surface-Go#wi-fi-firmware
|
||||
|
||||
NOTE: This module option will probably be removed in the near future.
|
||||
''];
|
||||
NOTE: This module option will probably be removed in the near future.
|
||||
''
|
||||
];
|
||||
|
||||
hardware.enableAllFirmware = true;
|
||||
hardware.firmware = [
|
||||
(pkgs.callPackage ./ath10k-replace.nix {})
|
||||
(pkgs.callPackage ./ath10k-replace.nix { })
|
||||
];
|
||||
|
||||
boot.extraModprobeConfig = mkDefault ''
|
||||
|
||||
Reference in New Issue
Block a user