2009-09-18 22:49:12 +02:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2012-08-11 14:52:45 +02:00
|
|
|
networking.enableRalinkFirmware = pkgs.lib.mkOption {
|
2009-09-18 22:49:12 +02:00
|
|
|
default = false;
|
|
|
|
type = pkgs.lib.types.bool;
|
|
|
|
description = ''
|
|
|
|
Turn on this option if you want firmware for the RT73 NIC
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2012-08-11 14:52:45 +02:00
|
|
|
config = pkgs.lib.mkIf config.networking.enableRalinkFirmware {
|
|
|
|
hardware.firmware = [ pkgs.ralink_fw ];
|
2009-09-18 22:49:12 +02:00
|
|
|
};
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2009-09-18 22:49:12 +02:00
|
|
|
}
|