2012-01-12 21:17:01 +04:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2012-01-14 13:30:24 +04:00
|
|
|
hardware.enableAllFirmware = pkgs.lib.mkOption {
|
2012-01-12 21:17:01 +04:00
|
|
|
default = false;
|
|
|
|
type = pkgs.lib.types.bool;
|
|
|
|
description = ''
|
2012-01-14 13:30:24 +04:00
|
|
|
Turn on this option if you want to enable all the firmware shipped with Debian/Ubuntu.
|
2012-01-12 21:17:01 +04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2012-01-14 13:30:24 +04:00
|
|
|
config = pkgs.lib.mkIf config.hardware.enableAllFirmware {
|
2013-09-04 16:22:52 +04:00
|
|
|
hardware.firmware = [ "${pkgs.firmwareLinuxNonfree}/lib/firmware" ];
|
2012-01-12 21:17:01 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|