summaryrefslogtreecommitdiffstats
path: root/systems/bu/config.nix
blob: 39d1007df5bdae3ae2556fb32760b40570c14a82 (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
{ config, ... }: {
  imports = [
    ./disks.nix
    ../../configs/hw/x220.nix
    ../../configs/exim-retiolum.nix
    ../../configs/gitconfig.nix
    ../../configs/pulse.nix
    ../../configs/retiolum.nix
    ../../configs/xsessions
  ];

  krebs.build.host = config.krebs.hosts.bu;

  networking.wireless.enable = true;
  networking.useDHCP = false;
  networking.interfaces.enp0s25.useDHCP = true;
  networking.interfaces.wlp3s0.useDHCP = true;
  networking.interfaces.wwp0s29u1u4i6.useDHCP = true;
  networking.wireless.interfaces = [
    "wlp3s0"
  ];

  programs.gnupg.agent.enable = true;
  programs.gnupg.agent.pinentryFlavor = "gtk2";

  services.earlyoom.enable = true;
  services.earlyoom.freeMemThreshold = 5;
  systemd.services.earlyoom.environment.EARLYOOM_ARGS = toString [
    "--prefer '(^|/)chromium$'"
  ];

  system.stateVersion = "21.11";
}