[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50873] [PATCH 6/7] doc: Document the ‘guix home import’ subcommand.
From: |
Xinglu Chen |
Subject: |
[bug#50873] [PATCH 6/7] doc: Document the ‘guix home import’ subcommand. |
Date: |
Sun, 10 Oct 2021 12:20:38 +0200 |
* doc/guix.texi (Invoking guix home): Document ‘guix home import’.
---
doc/guix.texi | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index b577684eb7..107a76a9d3 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -36089,6 +36089,38 @@
$ guix home list-generations 10d
@end example
+@item import
+Generate a @dfn{home environment} from the packages in the default
+profile and configuration files found in the user's home directory. The
+configuration files will be copied to the specified directory. Note
+that not every home service that exists is supported (@pxref{Home
+Services}).
+
+@example
+$ guix home import ~/guix-config
+;; This "home-environment" file can be passed to 'guix home reconfigure'
+;; to reproduce the content of your profile. This is "symbolic": it only
+;; specifies package names. To reproduce the exact same profile, you also
+;; need to capture the channels being used, as returned by "guix describe".
+;; See the "Replicating Guix" section in the manual.
+
+(use-modules
+ (gnu home)
+ (gnu packages)
+ (gnu home services shells))
+
+(home-environment
+ (packages
+ (map specification->package
+ (list "glibc-locales" "nss-certs" "nss")))
+ (services
+ (list (service
+ home-bash-service-type
+ (home-bash-configuration
+ (bashrc
+ (list (local-file "/tmp/guix-config/.bashrc"))))))))
+@end example
+
@end table
@var{options} can contain any of the common build options (@pxref{Common
--
2.33.0
- [bug#50873] [PATCH 0/5] Fixes to ‘guix home import’, (continued)
[bug#50873] [PATCH 3/7] guix home: import: Fix module name for Bash service., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 2/7] guix home: import: Allow multiple modules to be imported for each service., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 4/7] guix home: import: Don’t use 'slurp-file-gexp'., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 6/7] doc: Document the ‘guix home import’ subcommand.,
Xinglu Chen <=
[bug#50873] [PATCH 5/7] guix home: import: Delete duplicate modules when importing., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH v3 0/8] Fixes to ‘guix home import’, Xinglu Chen, 2021/10/30
- [bug#50873] [PATCH v3 1/8] guix home: import: Make the user to specify a destination directory., Xinglu Chen, 2021/10/30
- [bug#50873] [PATCH v3 6/8] doc: Document the ‘guix home import’ subcommand., Xinglu Chen, 2021/10/30
- [bug#50873] [PATCH v3 4/8] guix home: import: Don’t use 'slurp-file-gexp'., Xinglu Chen, 2021/10/30
- [bug#50873] [PATCH v3 2/8] guix home: import: Allow multiple modules to be imported for each service., Xinglu Chen, 2021/10/30
- [bug#50873] [PATCH v3 3/8] guix home: import: Fix module name for Bash service., Xinglu Chen, 2021/10/30
- [bug#50873] [PATCH v3 7/8] Add tests for ‘guix home import’., Xinglu Chen, 2021/10/30