summaryrefslogtreecommitdiff
path: root/modules/nixos/hardware/default.nix
blob: 624ccc18b011d011c95f7b800eaeaebe1fb2ed77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  ...
}: let
  cfg = config.hardware;
  inherit (lib) mkEnableOption mkIf;
in {
  options.hardware.enable = mkEnableOption "hardware module";

  imports = [
    ./nvidia.nix
  ];

  config = mkIf cfg.enable {
    hardware.enableAllFirmware = true;
  };
}