nixpkgs/nixos/modules/hardware/all-firmware.nix

27 lines
480 B
Nix
Raw Normal View History

{pkgs, config, ...}:
{
###### interface
options = {
hardware.enableAllFirmware = pkgs.lib.mkOption {
default = false;
type = pkgs.lib.types.bool;
description = ''
Turn on this option if you want to enable all the firmware shipped with Debian/Ubuntu.
'';
};
};
###### implementation
config = pkgs.lib.mkIf config.hardware.enableAllFirmware {
2013-09-04 13:22:52 +01:00
hardware.firmware = [ "${pkgs.firmwareLinuxNonfree}/lib/firmware" ];
};
}