all repos — nixfiles @ 8d29ce407cb4d4a2e475b753047c4cf5d68d27eb

System and user configuration, managed by nix and home-manager

system/hosts/buk.nix (view raw)

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
{
  imports = [
    ../roles/remote.nix
    ../roles/server.nix
    ../roles/ci-runner.nix
    ../roles/nix-remote-builder.nix
  ];

  networking.hostName = "buk";

  system.autoUpgrade = {
    operation = "boot";
    rebootWindow = null; # idle shutdown solves this for us
  };

  nix = {
    nrBuildUsers = 64;
    settings = {
      max-jobs = "auto";
      cores = 0;
    };
  };

  systemd.services.nix-daemon.serviceConfig = {
    MemoryAccounting = true;
    MemoryMax = "90%";
    OOMScoreAdjust = 500;
  };

  system.stateVersion = "25.11";
}