summaryrefslogtreecommitdiff
path: root/modules/nix-common.nix
blob: 6e4d373d3e0910e9a0ad3abef832726af29ae8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, ... }: {
  
  nix = {
    settings = {
      allowed-users = [ "@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";
    };

    # Users allowed to run nix
    # allowedUsers = [ "root" ];
  };
}