1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/nixos/modules/hardware/all-firmware.nix

29 lines
471 B
Nix
Raw Normal View History

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