2014-04-14 18:26:48 +04:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-10-30 20:37:45 +04:00
|
|
|
|
2014-04-14 18:26:48 +04:00
|
|
|
with lib;
|
2012-01-12 21:17:01 +04:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2013-10-30 20:37:45 +04:00
|
|
|
hardware.enableAllFirmware = mkOption {
|
2012-01-12 21:17:01 +04:00
|
|
|
default = false;
|
2013-10-30 20:37:45 +04:00
|
|
|
type = types.bool;
|
2012-01-12 21:17:01 +04:00
|
|
|
description = ''
|
2015-02-10 03:28:37 +03:00
|
|
|
Turn on this option if you want to enable all the firmware shipped in linux-firmware.
|
2012-01-12 21:17:01 +04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2013-10-30 20:37:45 +04:00
|
|
|
config = mkIf config.hardware.enableAllFirmware {
|
2016-04-22 17:54:11 +03:00
|
|
|
hardware.firmware = with pkgs; [
|
|
|
|
firmwareLinuxNonfree
|
|
|
|
intel2200BGFirmware
|
|
|
|
rtl8723bs-firmware
|
2017-03-31 11:41:34 +03:00
|
|
|
rtl8192su-firmware
|
2017-05-08 10:50:03 +03:00
|
|
|
] ++ optionals config.nixpkgs.config.allowUnfree [
|
|
|
|
broadcom-bt-firmware
|
2016-04-22 17:54:11 +03:00
|
|
|
];
|
2012-01-12 21:17:01 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|