On Tue, 2021-03-16 at 13:58 +0100, zimoun wrote: > Adding the manifest option to "guix lint", is it not enough? I do > not > know how many packages you have in your operating-system definition > but from my understanding your user-wide packages should be in > manifest.scm files, and you could also maintain a manifest.scm file > for your packages system-wide. Anyway. > > Here an example with an hard-coded path, saved in /tmp/manifest-from- > os.scm: > > --8<---------------cut here---------------start------------->8--- > (use-modules > (gnu system) > (guix profiles)) > > (define os > (load "/home/simon/src/guix/guix/gnu/system/examples/bare- > bones.tmpl")) > > (define pkgs (operating-system-packages os)) > > (packages->manifest pkgs) > --8<---------------cut here---------------end--------------->8--- > > Then "guix refresh -m /tmp/manifest-from-os.scm" should do the job. > Well, it is an example, the point is simply to show that an option is > not necessary, IMHO. However, a robust script could be in etc/ with > some other tools and with a line in the manual. Maybe. :-) > It seems better to keep separated what operates on packages and what > operates on system. > > > Cheers, > simon You are right that looks great!