2013-08-14 01:27:44 +01:00
|
|
|
{ config, pkgs, ... }:
|
2010-10-14 13:33:20 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-10-14 13:33:20 +01:00
|
|
|
networking.enableIntel2100BGFirmware = pkgs.lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
type = pkgs.lib.types.bool;
|
|
|
|
description = ''
|
|
|
|
Turn on this option if you want firmware for the Intel
|
|
|
|
PRO/Wireless 2100BG to be loaded automatically. This is
|
2013-08-14 01:27:44 +01:00
|
|
|
required if you want to use this device.
|
2010-10-14 13:33:20 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-10-14 13:33:20 +01:00
|
|
|
config = pkgs.lib.mkIf config.networking.enableIntel2100BGFirmware {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2013-08-14 01:27:44 +01:00
|
|
|
hardware.enableAllFirmware = true;
|
2010-10-14 13:33:20 +01:00
|
|
|
|
|
|
|
};
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-10-14 13:33:20 +01:00
|
|
|
}
|