nixpkgs/nixos/modules/hardware/network/b43.nix

34 lines
528 B
Nix
Raw Permalink Normal View History

{
config,
lib,
pkgs,
...
}:
let
kernelVersion = config.boot.kernelPackages.kernel.version;
in
2012-07-13 23:54:41 -04:00
{
###### interface
options = {
networking.enableB43Firmware = lib.mkOption {
2012-07-13 23:54:41 -04:00
default = false;
type = lib.types.bool;
description = ''
2012-07-13 23:54:41 -04:00
Turn on this option if you want firmware for the NICs supported by the b43 module.
'';
};
};
###### implementation
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
};
}