1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/nixos/modules/hardware/all-firmware.nix

33 lines
519 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2013-10-30 16:37:45 +00:00
with 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 in linux-firmware.
'';
};
};
###### implementation
2013-10-30 16:37:45 +00:00
config = mkIf config.hardware.enableAllFirmware {
hardware.firmware = with pkgs; [
firmwareLinuxNonfree
intel2200BGFirmware
rtl8723bs-firmware
];
};
}