Skip to content

Commit c7fe0dd

Browse files
committed
feat(global): cache.enable option
1 parent 63290ea commit c7fe0dd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/src/getting-started/stable-nix.md

-1
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,3 @@ or if you use a [standalone installation](https://nix-community.github.io/home-m
9191
}
9292
9393
```
94-

modules/global.nix

+9
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,14 @@ in
4545
apply = lib.recursiveUpdate defaultSources;
4646
description = "Port sources used across all options";
4747
};
48+
49+
cache.enable = lib.mkEnableOption "Enable Catppuccin cache";
50+
};
51+
52+
config = {
53+
nix.settings = lib.mkIf config.catppuccin.cache.enable {
54+
substituters = [ "https://catppuccin.cachix.org" ];
55+
trusted-public-keys = [ "catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=" ];
56+
};
4857
};
4958
}

0 commit comments

Comments
 (0)