Mark H Weaver writes: > One more important note: regardless of whether you run Guix from a git > checkout or use the official 'master' branch, if you build everything > locally, then it's important to pass "--gc-keep-derivations=yes" and > "--gc-keep-outputs=yes" to the Guix daemon. > > Those flags change the way the Guix garbage collector operates, such > that more store items are retained. I've forgotten the precise details, > but roughly, these flags cause not only the run-time requirements of the > currently-installed software to be retained, but also the *build* > requirements of that software. Without these flags, "guix gc" will > delete far too much, and you'll likely end up having to rebuild a great > many packages that are needed at build time only. > > I have something close to this in the 'services' field of my OS config: > > --8<---------------cut here---------------start------------->8--- > (modify-services %desktop-services > (guix-service-type config => > (guix-configuration > (inherit config) > (use-substitutes? #f) > (authorize-key? #f) > (authorized-keys '()) > (substitute-urls '()) > (extra-options '("--gc-keep-derivations=yes" > "--gc-keep-outputs=yes"))))) > --8<---------------cut here---------------end--------------->8---
Thank you for sharing this.