nixpkgs/modules/hardware/network/rt73.nix
Lluís Batlle i Rossell 4670b1318a Adding support for the rt73 usb wifi nic firmware loading.
svn path=/nixos/trunk/; revision=17264
2009-09-18 20:49:12 +00:00

27 lines
431 B
Nix

{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 ];
};
}