summary refs log tree commit diff
path: root/nixos/modules/hardware/network/intel-2200bg.nix
blob: 17b973474c93bc6d794ece6eb792957f4ee248df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ config, pkgs, lib, ... }:

{

  ###### interface

  options = {

    networking.enableIntel2200BGFirmware = lib.mkOption {
      default = false;
      type = lib.types.bool;
      description = ''
        Turn on this option if you want firmware for the Intel
        PRO/Wireless 2200BG to be loaded automatically.  This is
        required if you want to use this device.
      '';
    };

  };


  ###### implementation

  config = lib.mkIf config.networking.enableIntel2200BGFirmware {

    hardware.firmware = [ pkgs.intel2200BGFirmware ];

  };

}