summaryrefslogtreecommitdiff
path: root/hosts/base.nix
blob: aea25e9910154471573ecc03659167e4518ee209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{pkgs, ...}: {
  # fucking linux vulnerability
  # enable flakes
  nix = {
    gc = {
      automatic = true;
      interval = {Weekday = 0; Hour = 20; Minute = 0;};
      options = "--delete-older-than 7d";
    };
    # 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;
}