mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
34 lines
576 B
Nix
34 lines
576 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 with Debian/Ubuntu
|
|
and iwlwifi.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.hardware.enableAllFirmware {
|
|
hardware.firmware = [
|
|
"${pkgs.firmwareLinuxNonfree}/lib/firmware"
|
|
"${pkgs.iwlegacy}/lib/firmware"
|
|
"${pkgs.iwlwifi}/lib/firmware"
|
|
];
|
|
};
|
|
|
|
}
|