From 22a4b996742a99515c2cdf50cbd92d86a8370c4f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 30 Dec 2024 02:13:28 +0900 Subject: [PATCH] cmd/fpkg/install: deduplicate nix store Signed-off-by: Ophestra --- cmd/fpkg/install.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/fpkg/install.go b/cmd/fpkg/install.go index 47d4ffc..7c06461 100644 --- a/cmd/fpkg/install.go +++ b/cmd/fpkg/install.go @@ -139,6 +139,8 @@ func actionInstall(args []string) { "cp -dRf /nix nix", // copy from binary cache "nix copy --offline --no-check-sigs --all --from file://$BUNDLE/res --to $PWD", + // deduplicate nix store + "nix store --offline --store $PWD optimise", // make cache directory world-readable for autoetc "chmod 0755 .", }, workDir, bundle, pathSet, dropShellInstall, cleanup)