Compare commits
2 Commits
25e1b68c6d
...
b2fb5bfd13
Author | SHA1 | Date | |
---|---|---|---|
b2fb5bfd13 | |||
22a4b99674 |
@ -139,6 +139,8 @@ func actionInstall(args []string) {
|
|||||||
"cp -dRf /nix nix",
|
"cp -dRf /nix nix",
|
||||||
// copy from binary cache
|
// copy from binary cache
|
||||||
"nix copy --offline --no-check-sigs --all --from file://$BUNDLE/res --to $PWD",
|
"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
|
// make cache directory world-readable for autoetc
|
||||||
"chmod 0755 .",
|
"chmod 0755 .",
|
||||||
}, workDir, bundle, pathSet, dropShellInstall, cleanup)
|
}, workDir, bundle, pathSet, dropShellInstall, cleanup)
|
||||||
@ -163,6 +165,8 @@ func actionInstall(args []string) {
|
|||||||
"rm -rf .local/state/{nix,home-manager}",
|
"rm -rf .local/state/{nix,home-manager}",
|
||||||
// run activation script
|
// run activation script
|
||||||
bundle.ActivationPackage + "/activate",
|
bundle.ActivationPackage + "/activate",
|
||||||
|
// deduplicate nix store
|
||||||
|
"nix store optimise",
|
||||||
}, false, func(config *fst.Config) *fst.Config { return config }, bundle, pathSet, dropShellActivate, cleanup)
|
}, false, func(config *fst.Config) *fst.Config { return config }, bundle, pathSet, dropShellActivate, cleanup)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user