at 23.05-pre 529 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let kernelVersion = config.boot.kernelPackages.kernel.version; in 6 7{ 8 9 ###### interface 10 11 options = { 12 13 networking.enableB43Firmware = mkOption { 14 default = false; 15 type = types.bool; 16 description = lib.mdDoc '' 17 Turn on this option if you want firmware for the NICs supported by the b43 module. 18 ''; 19 }; 20 21 }; 22 23 24 ###### implementation 25 26 config = mkIf config.networking.enableB43Firmware { 27 hardware.firmware = [ pkgs.b43Firmware_5_1_138 ]; 28 }; 29 30}