2014-05-05 19:58:51 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
2009-05-20 11:44:50 +01:00
|
|
|
|
|
|
|
{
|
2009-08-04 09:50:02 +01:00
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2014-05-05 19:58:51 +01:00
|
|
|
networking.enableIntel2200BGFirmware = lib.mkOption {
|
2009-08-04 09:50:02 +01:00
|
|
|
default = false;
|
2014-05-05 19:58:51 +01:00
|
|
|
type = lib.types.bool;
|
2009-08-04 09:50:02 +01:00
|
|
|
description = ''
|
|
|
|
Turn on this option if you want firmware for the Intel
|
|
|
|
PRO/Wireless 2200BG to be loaded automatically. This is
|
2013-08-14 01:27:44 +01:00
|
|
|
required if you want to use this device.
|
2009-08-04 09:50:02 +01:00
|
|
|
'';
|
2009-05-20 11:44:50 +01:00
|
|
|
};
|
2009-08-04 09:50:02 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2014-05-05 19:58:51 +01:00
|
|
|
config = lib.mkIf config.networking.enableIntel2200BGFirmware {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2016-02-14 15:34:30 +00:00
|
|
|
hardware.firmware = [ pkgs.intel2200BGFirmware ];
|
2009-08-04 09:50:02 +01:00
|
|
|
|
2009-05-20 11:44:50 +01:00
|
|
|
};
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2009-08-04 09:50:02 +01:00
|
|
|
}
|