summaryrefslogtreecommitdiff
path: root/hosts/glados/default.nix
blob: 82e6f989435000e28dc5aa184968fe668240ab23 (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
_: {
  imports = [
    ../common/hardware
    ../common/hardware/nvidia.nix
    ../common/virtualisation.nix
    ./boot.nix
    ./hardware-configuration.nix
    ./network.nix
    ./services.nix
  ];

  powerManagement.cpuFreqGovernor = "ondemand";

  security.tpm2 = {
    enable = true;
    abrmd.enable = true;
  };

  zramSwap = {
    enable = true;
    algorithm = "zstd";
    swapDevices = 1;
    memoryPercent = 50;
  };
}