[email protected] writes: > 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
You can still use specifications with the guix home. Something like the
following should probably work:
(use-modules (gnu home)
(gnu packages))
(home-environment
(packages (map specification->package
'("guile"
"guile-gnutls"))))
Alternatively, if you want to keep using the variables instead of the
specifications, guix search will tell you in what file (and therefore
module) a package is defined:
--8<---------------cut here---------------start------------->8---
$ guix search guile-gnutls
name: guile-gnutls
version: 5.0.1
outputs:
+ debug: debug information
+ out: everything else
systems: x86_64-linux i686-linux
dependencies: [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected]
location: gnu/packages/tls.scm:312:2
homepage: https://codeberg.org/guile-gnutls/guile-gnutls
license: LGPL 2.1+
synopsis: Guile bindings to GnuTLS
description: This package provides Guile bindings to GnuTLS, a library
implementation the TLS (Transport-Layer Security) protocol. It supersedes the
Guile bindings that were formerly
+ provided as part of GnuTLS.
relevance: 20
--8<---------------cut here---------------end--------------->8---
Notice the `location' line. So in order to be able to use
`guile-gnutls' variable, you need to import (gnu packages tls).
Hope this helps,
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
signature.asc
Description: PGP signature
