summary refs log blame commit diff
path: root/nixos/modules/hardware/all-firmware.nix
blob: d0d481f72a40e146a836d0940f7e022ce4a36e50 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                           
 
         






                  
                                           
                      
                        
                      
                                                                                             







                       
                                                   
                                                                               


    
{ 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 = [ pkgs.firmwareLinuxNonfree pkgs.intel2200BGFirmware ];
  };

}