summaryrefslogtreecommitdiff
path: root/hosts/glados/default.nix
blob: 0efc154164c2c84487b57667a55555369a1b1ba3 (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
38
{home-manager, ...}: {
  imports = [
    ../../profiles/desktop/gnome
    ../../profiles/hardware/nvidia.nix
    ../../profiles/virtualisation.nix
    ../../users/seth
    ./boot.nix
    ./hardware-configuration.nix
    ./network.nix
    ./services.nix
  ];

  home-manager.users.seth = {
    imports = [
      ../../users/seth/desktop/gnome
    ];
  };

  environment.etc."environment".text = ''
    LIBVA_DRIVER_NAME=vdpau
  '';

  powerManagement.cpuFreqGovernor = "ondemand";

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

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

  system.stateVersion = "23.05";
}