summaryrefslogtreecommitdiff
path: root/nixos/hardware/default.nix
blob: 9c0fa3a77191dde3b1ecf378bfa09bed347b1e5a (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
26
27
{ nixos-hardware, ... }:

{
  imports = [ # Include the results of the hardware scan.
    ./hardware-configuration.nix

    # Community-curated hardware configuration
    nixos-hardware.nixosModules.common-cpu-intel
    nixos-hardware.nixosModules.common-pc-laptop
    nixos-hardware.nixosModules.common-pc-ssd
  ];

  personal.hardware = {
    usb.enable = true;
    disks.crypted = "/dev/disk/by-uuid/10aefeb6-e479-43cb-9848-53bd788a77ee";
    firmwareNonFree.enable = true;
    keyboard.keyMap = "fr";
    backlights = {
      screen = "intel_backlight";
      keyboard = "dell::kbd_backlight";
    };
    sound.enable = true;
  };

  # https://wiki.archlinux.org/title/Dell_Latitude_7280
  boot.kernelParams = [ "intel_idle.max_cstate=4" ];
}