2014-04-14 16:26:48 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2012-07-13 23:54:41 -04:00
|
|
|
let
|
|
|
|
kernelVersion = config.boot.kernelPackages.kernel.version;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2024-08-24 22:05:28 +02:00
|
|
|
networking.enableB43Firmware = lib.mkOption {
|
2012-07-13 23:54:41 -04:00
|
|
|
default = false;
|
2024-08-24 22:05:28 +02:00
|
|
|
type = lib.types.bool;
|
2012-07-13 23:54:41 -04:00
|
|
|
description = ''
|
|
|
|
Turn on this option if you want firmware for the NICs supported by the b43 module.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2024-08-24 22:05:28 +02:00
|
|
|
config = lib.mkIf config.networking.enableB43Firmware {
|
2012-09-03 10:35:45 -04:00
|
|
|
hardware.firmware = [ pkgs.b43Firmware_5_1_138 ];
|
2012-07-13 23:54:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|