2014-05-05 22:58:51 +04:00
|
|
|
{pkgs, config, lib, ...}:
|
2011-07-24 03:01:39 +04:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2014-05-05 22:58:51 +04:00
|
|
|
networking.enableRTL8192cFirmware = lib.mkOption {
|
2011-07-24 03:01:39 +04:00
|
|
|
default = false;
|
2014-05-05 22:58:51 +04:00
|
|
|
type = lib.types.bool;
|
2011-07-24 03:01:39 +04:00
|
|
|
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
|
|
|
|
2014-05-05 22:58:51 +04:00
|
|
|
config = lib.mkIf config.networking.enableRTL8192cFirmware {
|
2013-08-14 05:27:02 +04:00
|
|
|
hardware.enableAllFirmware = true;
|
2011-07-24 03:01:39 +04:00
|
|
|
};
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2011-07-24 03:01:39 +04:00
|
|
|
}
|