Update ccache dir & build nix with ccache
diff --git a/src/apps/personal/nix-index.nix b/src/apps/personal/nix-index.nix
new file mode 100644
index 0000000..eab0846
--- /dev/null
+++ b/src/apps/personal/nix-index.nix
@@ -0,0 +1,3 @@
+{ pkgs, ... }: {
+ home.packages = [ pkgs.nix-index ];
+}
diff --git a/src/system.nix b/src/system.nix
index 19d9a83..a93c78c 100644
--- a/src/system.nix
+++ b/src/system.nix
@@ -16,11 +16,15 @@
auto-optimise-store = true;
keep-outputs = true;
flake-registry = "${registry}/flake-registry.json";
- extra-sandbox-paths = [ "/var/cache/ccache" ];
+ extra-sandbox-paths = [ "/homeless-shelter/.ccache" ];
};
};
- programs.ccache.enable = true;
+ programs.ccache = {
+ enable = true;
+# packageNames = [ "nix" ];
+ cacheDir = "/homeless-shelter/.ccache";
+ };
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;