mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
9c61317002
This way, hardware.firmware can be a list of packages.
28 lines
452 B
Nix
28 lines
452 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 ];
|
|
};
|
|
|
|
}
|