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