all repos — nixfiles @ d980b43c1d5ff78e9e3e3f05bad89ce23277d8d2

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

system/hosts/smrk.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  pkgs,
  ...
}:
let
  hostname = "smrk";
in
{
  imports = [
    ../roles/remote.nix
    ../roles/server.nix

    ../roles/auth-dns.nix
    ../roles/ci.nix
    ../roles/go-vanity.nix
    ../roles/reverse-proxy.nix
    ../roles/forgejo-runner.nix
    ../roles/git-server.nix
    ../roles/nix-remote-builder.nix
    ../roles/searchix.nix
  ];
  system.stateVersion = "25.11";

  environment.systemPackages = with pkgs; [
    cifs-utils
    knot-dns
  ];

  networking.hostName = hostname;

  nix = {
    settings = {
      max-jobs = 2;
    };
  };

  services.searchix.settings.importer = {
    batchSize = 2000;
  };
  systemd.services.searchix.serviceConfig = {
    MemoryHigh = "25%";
    MemoryMax = "30%";
  };
  systemd.services."goaccess@searchix".serviceConfig = {
    MemoryHigh = "40%";
    MemoryMax = "50%";
  };
  systemd.services.laminar.serviceConfig = {
    MemoryHigh = "25%";
    MemoryMax = "30%";
  };
}