summaryrefslogtreecommitdiff
path: root/hosts/base.nix
blob: 7bd0ed06b00c08994aa1da138a0e7f4210ed8c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{pkgs, ...}: {
  # enable flakes
  nix = {
    gc = {
      automatic = true;
      dates = "weekly";
      options = "--delete-older-than 7d";
    };
    package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
    settings = {
      keep-outputs = true;
      keep-derivations = true;
    };
  };

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