summaryrefslogtreecommitdiff
path: root/hosts/base.nix
blob: e8de7d8f865d92278ae0622f68860f3de1c23199 (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
34
{pkgs, ...}: {
  # fucking linux vulnerability
  # enable flakes
  nix = {
    gc =
      {
        automatic = true;
        options = "--delete-older-than 7d";
      }
      // (
        if pkgs.stdenv.isDarwin
        then {
          interval = {
            Weekday = 0;
            Hour = 20;
            Minute = 0;
          };
        }
        else {dates = "weekly";}
      );
    # package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
    settings = {
      keep-outputs = true;
      keep-derivations = true;
      trusted-users = ["root" "y"];
    };
  };

  #direnv
  # programs.direnv.enable = true;
}