mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
1176525f87
We don't support Linux kernels older than 4.4 in Nixpkgs.
31 lines
519 B
Nix
31 lines
519 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 = ''
|
|
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 ];
|
|
};
|
|
|
|
}
|