about summary refs log tree commit diff
path: root/hosts/common/system/nix.nix
blob: 48379a4666b3930dd521c34931c01b1065d521e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, pkgs, ... }:

{
  # Enable flakes and new 'nix' command
  nix = {
    package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
    autoOptimiseStore = true;
    trustedUsers = [ "root" "@wheel" ];

    gc = {
      automatic = true;
      options = "--delete-older-than 14d";
    };
  };
}