aboutsummaryrefslogtreecommitdiff
path: root/modules/nix.nix
blob: 2c4ef8311aa52b950388751b8825494c16fb04c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ inputs, ... }:
{
    nix.nixPath = [ "/etc/nix/path" ];
    nix.registry.nixpkgs.flake = inputs.nixpkgs;
    environment.etc."nix/path/nixpkgs".source = inputs.nixpkgs;
    
    nix = {
        settings = {
            experimental-features = [ "nix-command" "flakes" ];
            auto-optimise-store = true;
            
            trusted-users = [ "boss" ];

            substituters = [
                "https://cache.nixos.org"
            ];

            # trusted-public-keys = [
            #     "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
            # ];
        };
        gc = {
            automatic = true;
            dates = "weekly";
            options = "--delete-older-than +7";
        };
        optimise.automatic = true;
    };
}