From 4670b1318ac6679c9b5ba020c97e408d191a07d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 18 Sep 2009 20:49:12 +0000 Subject: [PATCH] Adding support for the rt73 usb wifi nic firmware loading. svn path=/nixos/trunk/; revision=17264 --- modules/hardware/network/rt73.nix | 26 ++++++++++++++++++++++++++ modules/module-list.nix | 1 + 2 files changed, 27 insertions(+) create mode 100644 modules/hardware/network/rt73.nix diff --git a/modules/hardware/network/rt73.nix b/modules/hardware/network/rt73.nix new file mode 100644 index 00000000000..f7fae009528 --- /dev/null +++ b/modules/hardware/network/rt73.nix @@ -0,0 +1,26 @@ +{pkgs, config, ...}: + +{ + + ###### interface + + options = { + + networking.enableRT73Firmware = pkgs.lib.mkOption { + default = false; + type = pkgs.lib.types.bool; + description = '' + Turn on this option if you want firmware for the RT73 NIC + ''; + }; + + }; + + + ###### implementation + + config = pkgs.lib.mkIf config.networking.enableRT73Firmware { + hardware.firmware = [ pkgs.rt73fw ]; + }; + +} diff --git a/modules/module-list.nix b/modules/module-list.nix index 63246f44400..ca6bd0b3515 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -9,6 +9,7 @@ ./config/users-groups.nix ./hardware/network/intel-2200bg.nix ./hardware/network/intel-3945abg.nix + ./hardware/network/rt73.nix ./hardware/pcmcia.nix ./installer/grub/grub.nix ./installer/tools/nixos-checkout.nix