aboutsummaryrefslogblamecommitdiff
path: root/modules/system/nix/default.nix
blob: ad6bb8d9de716c84e5d686db71ce2dc1d8b7f204 (plain) (tree)
1
2
3
4
5
6
7
8
9

                      






                                                
 









                                                                               



                                          

    
# Nix related settings
{ lib, pkgs, ... }: {
  nix = {
    package = pkgs.nixFlakes;
    extraOptions = ''
      experimental-features = nix-command flakes
    '';
    autoOptimiseStore = true;
    trustedUsers = [ "root" "@wheel" ];

    binaryCaches = [
      "https://cachix.cachix.org"
      "https://nix-community.cachix.org"
    ];

    binaryCachePublicKeys = [
      "cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
      "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
    ];

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