2014-04-14 07:26:48 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-10-30 09:37:45 -07:00
|
|
|
|
2014-04-14 07:26:48 -07:00
|
|
|
with lib;
|
2012-01-12 09:17:01 -08:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2013-10-30 09:37:45 -07:00
|
|
|
hardware.enableAllFirmware = mkOption {
|
2012-01-12 09:17:01 -08:00
|
|
|
default = false;
|
2013-10-30 09:37:45 -07:00
|
|
|
type = types.bool;
|
2012-01-12 09:17:01 -08:00
|
|
|
description = ''
|
2015-02-09 16:28:37 -08:00
|
|
|
Turn on this option if you want to enable all the firmware shipped in linux-firmware.
|
2012-01-12 09:17:01 -08:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2013-10-30 09:37:45 -07:00
|
|
|
config = mkIf config.hardware.enableAllFirmware {
|
2016-02-14 07:34:30 -08:00
|
|
|
hardware.firmware = [ pkgs.firmwareLinuxNonfree pkgs.intel2200BGFirmware ];
|
2012-01-12 09:17:01 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|