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