2009-05-20 12:44:50 +02:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
2009-08-04 10:50:02 +02:00
|
|
|
{
|
2009-05-20 12:44:50 +02:00
|
|
|
|
2009-08-04 10:50:02 +02:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
networking.enableIntel3945ABGFirmware = pkgs.lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
type = pkgs.lib.types.bool;
|
|
|
|
description = ''
|
|
|
|
This option enables automatic loading of the firmware for the Intel
|
|
|
|
PRO/Wireless 3945ABG.
|
|
|
|
'';
|
|
|
|
};
|
2009-05-24 20:36:32 +02:00
|
|
|
|
2009-05-20 12:44:50 +02:00
|
|
|
};
|
|
|
|
|
2009-08-04 10:50:02 +02:00
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = pkgs.lib.mkIf config.networking.enableIntel3945ABGFirmware {
|
|
|
|
|
2009-08-10 21:27:15 +02:00
|
|
|
hardware.firmware = [ pkgs.iwlwifi3945ucode ];
|
2009-08-04 10:50:02 +02:00
|
|
|
|
2009-05-20 12:44:50 +02:00
|
|
|
};
|
2009-08-04 10:50:02 +02:00
|
|
|
|
2009-05-20 12:44:50 +02:00
|
|
|
}
|