summaryrefslogtreecommitdiff
path: root/hosts/glados/default.nix
blob: e8b083e6936880498b3f0040eb2d9ff1ba44191f (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
39
40
41
42
{
  config,
  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";
}