mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
27 lines
470 B
Nix
27 lines
470 B
Nix
|
{pkgs, config, ...}:
|
||
|
|
||
|
{
|
||
|
|
||
|
###### interface
|
||
|
|
||
|
options = {
|
||
|
|
||
|
hardware.enableFirmwareLinuxNonfree = pkgs.lib.mkOption {
|
||
|
default = false;
|
||
|
type = pkgs.lib.types.bool;
|
||
|
description = ''
|
||
|
Turn on this option if you want the set of firmware of the non-free package.
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
###### implementation
|
||
|
|
||
|
config = pkgs.lib.mkIf config.hardware.enableFirmwareLinuxNonfree {
|
||
|
hardware.firmware = [ pkgs.firmwareLinuxNonfree ];
|
||
|
};
|
||
|
|
||
|
}
|