1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 05:19:17 +03:00
nixpkgs/nixos/modules/hardware/network/b43.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
519 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2012-07-13 23:54:41 -04:00
let kernelVersion = config.boot.kernelPackages.kernel.version; in
{
###### interface
options = {
networking.enableB43Firmware = lib.mkOption {
2012-07-13 23:54:41 -04:00
default = false;
type = lib.types.bool;
2012-07-13 23:54:41 -04:00
description = ''
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
};
}