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