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
552 B
Nix
30 lines
552 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
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
|
|
required if you want to use this device.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = pkgs.lib.mkIf config.networking.enableIntel2100BGFirmware {
|
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
};
|
|
|
|
}
|