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