summaryrefslogtreecommitdiff
path: root/modules/nixos/nix-common.nix
blob: 237f83fa0444470c9b0a72289ec9c2f9756a66d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, pkgs, ... }: {
  
  nix = {
    settings = {
      # Users allowed to run nix
      allowed-users = [ "root" "@wheel" "@builders" "@video" ];
      experimental-features = [ "nix-command" "flakes" ];
    };

    # Clean up old generations after 30 days
    gc = {
      automatic = true;
      dates = "weekly";
      options = "--delete-older-than 30d";
    };
  };
}