mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
27 lines
480 B
Nix
27 lines
480 B
Nix
{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 {
|
|
hardware.firmware = [ "${pkgs.firmwareLinuxNonfree}/lib/firmware" ];
|
|
};
|
|
|
|
}
|