summaryrefslogtreecommitdiff
path: root/modules/nix-common.nix
blob: 874e2d6432ca6b76627a55831eaa96a323bd38db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, pkgs, ... }: {
  
  nixpkgs = {
    # texlive.combined.scheme-medium;
    config.allowUnfree = true; 
  };

  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" ];
  };
}