summaryrefslogtreecommitdiff
path: root/hel/hw.nix
blob: 33ff85554d86b44945bd119b647a15ad2b3775b8 (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
28
29
30
31
32
33
34
35
36
37
{ config, lib, pkgs, ... }:

{
  imports =
    [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
    ];

  boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
  boot.kernelModules = [ "kvm-intel" ];
  boot.extraModulePackages = [ ];

  fileSystems."/" =
    { device = "/dev/hel/btrfs";
      fsType = "btrfs";
      options = [ "compress=lzo" "discard" "defaults" ];
    };

  fileSystems."/boot" =
    { device = "/dev/disk/by-uuid/3ADC-E1CD";
      fsType = "vfat";
    };

  swapDevices =
    [ { device = "/dev/hel/swap"; }
    ];

  nix.maxJobs = lib.mkDefault 4;

  hardware.trackpoint = {
    enable = true;
    emulateWheel = true;
    sensitivity = 255;
    speed = 160;
  };

  hardware.cpu.intel.updateMicrocode = true;
}