nixpkgs/modules/hardware/network/rtl8192c.nix
Shea Levy d121bb15b5 Add a NixOS module for the rtl8192c firmware
svn path=/nixos/trunk/; revision=27913
2011-07-23 23:01:39 +00:00

27 lines
462 B
Nix

{pkgs, config, ...}:
{
###### interface
options = {
networking.enableRTL8192cFirmware = pkgs.lib.mkOption {
default = false;
type = pkgs.lib.types.bool;
description = ''
Turn on this option if you want firmware for the RTL8192c (and related) NICs
'';
};
};
###### implementation
config = pkgs.lib.mkIf config.networking.enableRTL8192cFirmware {
hardware.firmware = [ pkgs.rtl8192cfw ];
};
}