summary refs log tree commit diff stats
path: root/modules/hardware/bare-metal.nix
blob: 9d79fb5057eb21532b96a46705437df5de9429a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, pkgs, ... }:

{ environment.systemPackages = with pkgs; [
    fuse_exfat
    cryptsetup
    dmidecode
    hdparm
    pciutils
    usbutils
  ];

  hardware.cpu.intel.updateMicrocode = true;

  boot.kernel.sysctl = {
    "net.ipv4.tcp_allowed_congestion_control" = "illinois reno lp";
    "net.ipv4.tcp_congestion_control" = "illinois";
  };

  boot.tmpOnTmpfs = true;

  fileSystems."/".options = [ "noatime" "nodiratime" ];
  fileSystems."/home".options = [ "noatime" "nodiratime" ];
}