about summary refs log tree commit diff
path: root/modules/system/nix/default.nix
blob: 2ad20c374cc49042c01525882958946b0da1c830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Nix related settings
{ lib, pkgs, ... }: {
  nix = {
    package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
    autoOptimiseStore = true;
    trustedUsers = [ "root" "@wheel" ];

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