summary refs log tree commit diff
path: root/modules/hardware/all-firmware.nix
blob: 9ef7b1523fcdb0d81ec24f716e3aac790d108d0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{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 ];
  };

}