mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
4d26262878
Also, removed the firmware-free option because that firmware is already in the kernel package and thus causing collisions otherwise. svn path=/nixos/trunk/; revision=31527
26 lines
462 B
Nix
26 lines
462 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 ];
|
|
};
|
|
|
|
}
|