mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
28 lines
519 B
Nix
28 lines
519 B
Nix
{ config, lib, pkgs, ... }:
|
|
let kernelVersion = config.boot.kernelPackages.kernel.version; in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
networking.enableB43Firmware = lib.mkOption {
|
|
default = false;
|
|
type = lib.types.bool;
|
|
description = ''
|
|
Turn on this option if you want firmware for the NICs supported by the b43 module.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf config.networking.enableB43Firmware {
|
|
hardware.firmware = [ pkgs.b43Firmware_5_1_138 ];
|
|
};
|
|
|
|
}
|