Compare commits

..

2 Commits

Author SHA1 Message Date
b2fb5bfd13
cmd/fpkg/install: deduplicate nix store
All checks were successful
Tests / Go tests (push) Successful in 51s
Nix / NixOS tests (push) Successful in 4m42s
Signed-off-by: Ophestra <cat@gensokyo.uk>
2024-12-30 02:13:28 +09:00
22a4b99674
cmd/fpkg/install: deduplicate nix store
All checks were successful
Tests / Go tests (push) Successful in 41s
Nix / NixOS tests (push) Successful in 4m43s
Signed-off-by: Ophestra <cat@gensokyo.uk>
2024-12-30 02:25:04 +09:00

View File

@ -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)