summaryrefslogtreecommitdiff
path: root/nixos/hardware/default.nix
blob: 0405ff440b5dc6f8864cdff5e3ced1f9fa4dd2ec (plain)
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
{nixos-hardware, ...}: {
  imports = [
    # Include the results of the hardware scan.
    ./hardware-configuration.nix

    # Community-curated hardware configuration
    nixos-hardware.nixosModules.dell-latitude-7490
    nixos-hardware.nixosModules.common-pc-ssd
  ];

  personal.hardware = {
    usb.enable = true;
    disks.crypted = "/dev/disk/by-uuid/ba5dc9cd-3a73-4a01-880b-8720844307ae";
    firmwareNonFree.enable = true;
    keyboard.keyMap = "fr";
    backlights = {
      screen = "intel_backlight";
      keyboard = "dell::kbd_backlight";
    };
    sound.enable = true;
  };

  # faulty Intel CPU
  boot.kernelParams = ["i915.dc_enable=0" "intel_idle.max_cstate=1"];
}