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
|
|
|
{
|
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.enableIntel3945ABGFirmware = 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 = ''
|
|
|
|
This option enables automatic loading of the firmware for the Intel
|
|
|
|
PRO/Wireless 3945ABG.
|
|
|
|
'';
|
|
|
|
};
|
2009-05-24 19:36:32 +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.enableIntel3945ABGFirmware {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2017-05-09 20:10:41 +01:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
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-05-20 11:44:50 +01:00
|
|
|
}
|