2014-05-05 11:58:51 -07:00
|
|
|
{pkgs, config, lib, ...}:
|
2009-09-18 13:49:12 -07:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2014-05-05 11:58:51 -07:00
|
|
|
networking.enableRalinkFirmware = lib.mkOption {
|
2009-09-18 13:49:12 -07:00
|
|
|
default = false;
|
2014-05-05 11:58:51 -07:00
|
|
|
type = lib.types.bool;
|
2009-09-18 13:49:12 -07:00
|
|
|
description = ''
|
2013-08-13 18:34:40 -07:00
|
|
|
Turn on this option if you want firmware for the RT73 NIC.
|
2009-09-18 13:49:12 -07:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2014-05-05 11:58:51 -07:00
|
|
|
config = lib.mkIf config.networking.enableRalinkFirmware {
|
2013-08-13 18:27:02 -07:00
|
|
|
hardware.enableAllFirmware = true;
|
2009-09-18 13:49:12 -07:00
|
|
|
};
|
2011-09-14 11:20:50 -07:00
|
|
|
|
2009-09-18 13:49:12 -07:00
|
|
|
}
|