Skip to content

Commit

Permalink
feat(global): cache.enable option
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Jan 2, 2025
1 parent 63290ea commit 3a33be0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/global.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,14 @@ in
apply = lib.recursiveUpdate defaultSources;
description = "Port sources used across all options";
};

cache.enable = lib.mkEnableOption "Enable Catppuccin cache";
};

config = {
nix.settings = lib.mkIf config.catppuccin.cache.enable {
substituters = [ "https://catppuccin.cachix.org" ];
trusted-public-keys = [ "catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=" ];
};
};
}

0 comments on commit 3a33be0

Please sign in to comment.