3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/hardware/all-firmware.nix
2015-02-13 14:27:47 -08:00

31 lines
480 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 = [
"${pkgs.firmwareLinuxNonfree}/lib/firmware"
];
};
}