aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/mercury/system/hardware.nix
blob: dca33cddedea996e2815cb020d2d1283ac7af538 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, pkgs, modulesPath, ... }:

{
  imports = [
    (modulesPath + "/installer/scan/not-detected.nix")
  ];

  hardware = {
    firmwareCompression = "zstd";
    enableRedistributableFirmware = true;
    cpu.amd.updateMicrocode = true;
    steam-hardware.enable = true;
    keyboard.qmk.enable = true;

    bluetooth = {
      enable = true;
      powerOnBoot = true;
    };

    graphics = {
      enable = true;
      enable32Bit = true;
    };

    i2c = {
      enable = true;
      group = "users";
    };

    nvidia = {
      open = true;
      branch = "latest";
      nvidiaSettings = false;
      videoAcceleration = true;
      modesetting.enable = true;
      powerManagement.enable = true;
    };
  };
}