fc2fc63f4c
The intel-*.nix modules are obsolete (since you can just say ‘hardware.enableAllFirmware = true’, or equivalently, ‘hardware.firmware = [ pkgs.firmwareLinuxNonfree ]’). But we'll keep them around for compatibility.
30 lines
483 B
Nix
30 lines
483 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
###### 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.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = pkgs.lib.mkIf config.networking.enableIntel3945ABGFirmware {
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
};
|
|
|
|
}
|