summaryrefslogtreecommitdiff
path: root/config/store.nix
blob: cc4e15e00879eac0ce41836f167bb0a8c1ae684c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ ... }:

{
  nix = {
    autoOptimiseStore = true;
    experimental-features = [ "nix-command" "flakes" ];
    gc = {
      automatic = true;
      dates = "daily";
      options = "--delete-old";
    };
    settings.max-jobs = lib.mkDefault 1;
  };
  system.autoUpgrade = {
    enable = true;
    flake = "git+file:///etc/nixos/";
    flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
  };
}