2011-07-24 03:01:39 +04:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2011-07-24 03:01:39 +04:00
|
|
|
networking.enableRTL8192cFirmware = pkgs.lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
type = pkgs.lib.types.bool;
|
|
|
|
description = ''
|
2011-07-25 04:36:41 +04:00
|
|
|
Turn on this option if you want firmware for the RTL8192c (and related) NICs.
|
2011-07-24 03:01:39 +04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2011-07-24 03:01:39 +04:00
|
|
|
config = pkgs.lib.mkIf config.networking.enableRTL8192cFirmware {
|
|
|
|
hardware.firmware = [ pkgs.rtl8192cfw ];
|
|
|
|
};
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2011-07-24 03:01:39 +04:00
|
|
|
}
|