aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/carbon/system/nix.nix
blob: 069fe06ca7b75a8ecf4aeba605ae03a1a18c19f6 (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
{ user, pkgs, ... }:

{
  nix = {
    gc = {
      automatic = true;
      interval = {
        Hour = 0;
        Minute = 0;
        Weekday = 7;
      };
    };

    optimise = {
      automatic = true;
      interval = {
        Hour = 0;
        Minute = 0;
      };
    };

    settings = {
      cores = 0;
      max-jobs = "auto";
      trusted-users = [ user ];
      use-xdg-base-directories = true;
      experimental-features = [
        "nix-command"
        "flakes"
      ];
    };
  };
}