diff options
Diffstat (limited to 'nixos/modules/hardware/network/b43.nix')
-rw-r--r-- | nixos/modules/hardware/network/b43.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/modules/hardware/network/b43.nix b/nixos/modules/hardware/network/b43.nix new file mode 100644 index 00000000000..eb03bf223cc --- /dev/null +++ b/nixos/modules/hardware/network/b43.nix @@ -0,0 +1,30 @@ +{ 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 ]; + }; + +} |