summaryrefslogtreecommitdiff
path: root/modules/nix.nix
blob: 26d79ef0604f66d1d76b0af9c7e29cfb60844eae (plain) (blame)
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
{
  nixpkgs.config.allowUnfree = true;

  nix = {
    allowedUsers = [
      "root"
      "@wheel"
    ];

    settings = {
      auto-optimise-store = true;
      http-connections = 50;
      warn-dirty = false;
      log-lines = 50;
      # sandbox = "relaxed";

      trusted-users = [
        "root"
        "@wheel"
      ];

      substituters = [
        "https://nix-community.cachix.org"
        "https://hyprland.cachix.org"
        "https://ghostty.cachix.org"
      ];

      experimental-features = [
        "nix-command"
        "flakes"
      ];
    };

    gc = {
      automatic = false;
      dates = "weekly";
      options = "--delete-older-than 7d";
    };

    # distributedBuilds = true;
  };
}