On 2026-03-29 01:53, gfp wrote:
> Hi,
> 
> a simple question
> 
> If I copy my /home somewhere to save it
> later I install Guix again as my system,
> copy my saved /home back to guix...
> 
> How could I save my installed packages that I can easily get them after 
> reinstalling Guix?
> 

I would recommend the use of 'guix home' for this, if I knew of an easy
way to get the package names plus the necessary (use-module ...)
declarations that are needed in ~/guix-home-config.scm 

'guix home' can reconfigure your home environment same as 'guix system'
can reconfigure the system, but its config file lives at /home, so
you'll copy it over with the rest of the homedir & it shall be available
on the new system.

guix package --export-manifest gets you the package names. Running 'guix
home reconfigure guix-home-config.scm' will tell you the necessary
(use-modules ...) forms to use via its error messages, but this is a
process nearly equal in pain to re-installing all your packages
'manually' with guix package. But you only have to go through it one
time, provided you don't lose all your data including your
~/home-config.scm like I did.

Some day I will understand all of this well enough to make a patch but
not today.

Reply via email to