mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
34 lines
544 B
Nix
34 lines
544 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
hardware.enableAllFirmware = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
description = ''
|
|
Turn on this option if you want to enable all the firmware shipped in linux-firmware.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.hardware.enableAllFirmware {
|
|
hardware.firmware = with pkgs; [
|
|
firmwareLinuxNonfree
|
|
intel2200BGFirmware
|
|
rtl8723bs-firmware
|
|
rtl8192su-firmware
|
|
];
|
|
};
|
|
|
|
}
|