about summary refs log tree commit diff
path: root/nixos/modules/hardware/all-firmware.nix
blob: bc82bfd066c3685234ff79ec2eddc54b594660a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ config, lib, pkgs, ... }:

with lib;

{

  ###### interface

  options = {

    hardware.enableAllFirmware = mkOption {
      default = false;
      type = types.bool;
      description = ''
        Turn on this option if you want to enable all the firmware shipped in linux-firmware.
      '';
    };

  };


  ###### implementation

  config = mkIf config.hardware.enableAllFirmware {
    hardware.firmware = with pkgs; [
      firmwareLinuxNonfree
      intel2200BGFirmware
      rtl8723bs-firmware
      rtl8192su-firmware
    ];
  };

}