Skip to content

Commit

Permalink
feat: global cachix option (#445)
Browse files Browse the repository at this point in the history
* feat(global): cache.enable option

* docs(cache): improve option docs

Co-authored-by: seth <[email protected]>

---------

Co-authored-by: seth <[email protected]>
  • Loading branch information
isabelroses and getchoo authored Jan 3, 2025
1 parent b326f48 commit 07f97a4
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 "the usage of Catppuccin's binary 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 07f97a4

Please sign in to comment.