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 08ef629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/src/getting-started/stable-nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,3 @@ or if you use a [standalone installation](https://nix-community.github.io/home-m
}
```

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 08ef629

Please sign in to comment.