02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
30 lines
529 B
Nix
30 lines
529 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let kernelVersion = config.boot.kernelPackages.kernel.version; in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
networking.enableB43Firmware = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
description = lib.mdDoc ''
|
|
Turn on this option if you want firmware for the NICs supported by the b43 module.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.networking.enableB43Firmware {
|
|
hardware.firmware = [ pkgs.b43Firmware_5_1_138 ];
|
|
};
|
|
|
|
}
|