nixpkgs-suyu/nixos/modules/hardware/all-firmware.nix

34 lines
576 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2013-10-30 17:37:45 +01:00
with lib;
{
###### interface
options = {
2013-10-30 17:37:45 +01:00
hardware.enableAllFirmware = mkOption {
default = false;
2013-10-30 17:37:45 +01:00
type = types.bool;
description = ''
Turn on this option if you want to enable all the firmware shipped with Debian/Ubuntu
and iwlwifi.
'';
};
};
###### implementation
2013-10-30 17:37:45 +01:00
config = mkIf config.hardware.enableAllFirmware {
hardware.firmware = [
"${pkgs.firmwareLinuxNonfree}/lib/firmware"
"${pkgs.iwlegacy}/lib/firmware"
"${pkgs.iwlwifi}/lib/firmware"
];
};
}