From 6cd14e37841e96d1e9bda2514fd73f74706e4598 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Thu, 14 Oct 2010 12:33:20 +0000 Subject: [PATCH] Intel 2100 wifi firmware: packaged svn path=/nixos/trunk/; revision=24285 --- modules/hardware/network/intel-2100bg.nix | 34 +++++++++++++++++++++++ modules/module-list.nix | 1 + 2 files changed, 35 insertions(+) create mode 100644 modules/hardware/network/intel-2100bg.nix diff --git a/modules/hardware/network/intel-2100bg.nix b/modules/hardware/network/intel-2100bg.nix new file mode 100644 index 00000000000..aec4f9748dc --- /dev/null +++ b/modules/hardware/network/intel-2100bg.nix @@ -0,0 +1,34 @@ +{pkgs, config, ...}: + +{ + + ###### 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. Intel requires you to + accept the license for this firmware, see + . + ''; + }; + + }; + + + ###### implementation + + config = pkgs.lib.mkIf config.networking.enableIntel2100BGFirmware { + + # Warning: setting this option requires acceptance of the firmware + # license, see http://ipw2100.sourceforge.net/firmware.php?fid=2. + hardware.firmware = [ pkgs.ipw2100fw ]; + + }; + +} diff --git a/modules/module-list.nix b/modules/module-list.nix index f70473f1b9b..5e6ed0095f2 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -12,6 +12,7 @@ ./config/timezone.nix ./config/unix-odbc-drivers.nix ./config/users-groups.nix + ./hardware/network/intel-2100bg.nix ./hardware/network/intel-2200bg.nix ./hardware/network/intel-3945abg.nix ./hardware/network/rt73.nix