ccache: move cache to /var/lib/ccache

This commit is contained in:
2023-11-30 20:17:03 +08:00
parent 73ddbd00a9
commit 2bf0d49e52
2 changed files with 2 additions and 2 deletions

View File

@@ -324,7 +324,6 @@ inputs:
))
(attrsToList servers)));
};
nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ];
nixpkgs.config =
{
permittedInsecurePackages = with inputs.pkgs;

View File

@@ -32,7 +32,8 @@ inputs:
(
mkConditional (nixpkgs.march != null)
{
programs.ccache.enable = true;
programs.ccache = { enable = true; cacheDir = "/var/lib/ccache"; };
nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ];
nixpkgs =
{
hostPlatform = { system = "x86_64-linux"; gcc = { arch = nixpkgs.march; tune = nixpkgs.march; }; };