summary refs log tree commit diff stats
path: root/modules/hardware/bare-metal.nix
blob: 0a61790af6f6fd75802f0ccddebfe13dcffad617 (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
{ 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";
  };

  zramSwap = {
    enable = true;
    algorithm = "zstd";
  };
  boot.tmpOnTmpfs = true;

  boot.kernelModules = [ "bfq" ];

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