Add a NixOS module for the rtl8192c firmware
svn path=/nixos/trunk/; revision=27913
This commit is contained in:
26
modules/hardware/network/rtl8192c.nix
Normal file
26
modules/hardware/network/rtl8192c.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{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 ];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user