From patchwork Tue Sep 28 17:36:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 33398 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DAF2627BBE3; Tue, 28 Sep 2021 18:37:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ABF8027BBE1 for ; Tue, 28 Sep 2021 18:37:11 +0100 (BST) Received: from localhost ([::1]:44188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVH2U-0004NK-Nm for patchwork@mira.cbaines.net; Tue, 28 Sep 2021 13:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVH2N-0004MY-Jc for guix-patches@gnu.org; Tue, 28 Sep 2021 13:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVH2N-0006gr-B4; Tue, 28 Sep 2021 13:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVH2N-0001FP-1c; Tue, 28 Sep 2021 13:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [PATCH 5/5] doc: Document the =?utf-8?b?4oCYZ3VpeA==?= home =?utf-8?b?aW1wb3J04oCZ?= subcommand. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, andrew@trop.in, guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50873 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50873@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Andrew Tropin X-Debbugs-Original-Xcc: Ludovic =?utf-8?q?Court=C3=A8s?= , Andrew Tropin Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.16328505734708 (code B ref 50873); Tue, 28 Sep 2021 17:37:02 +0000 Received: (at 50873) by debbugs.gnu.org; 28 Sep 2021 17:36:13 +0000 Received: from localhost ([127.0.0.1]:46934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVH1Y-0001Dr-Vj for submit@debbugs.gnu.org; Tue, 28 Sep 2021 13:36:13 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:33292 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVH1U-0001DB-MJ for 50873@debbugs.gnu.org; Tue, 28 Sep 2021 13:36:08 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1632850563; bh=TUtWXEuGN7p9CKtrdQJ102+DBZNfc2RxrCTbv4yjRA0=; h=From:To:Subject:In-Reply-To:References:Date; b=VhTB1R460wWAgmWKEBeFPvF8byYXfv1U7WaTChVrxy4UZ1/H7wxa/iLH2H3N7vnkU hs3mBknzmfGZeK0oo1lZpamx1vVCOBygHYoafcw88y4l5z6YdORc9wXQ6ILc4wZ9+s zK76HYIFx+u535rC+Ls2HBu/DmP/oxxf5iw4mWBg= In-Reply-To: References: Message-Id: Date: Tue, 28 Sep 2021 19:36:02 +0200 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/guix.texi (Invoking guix home): Document ‘guix home import’. --- doc/guix.texi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 7956652050..2c268705d0 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -36088,6 +36088,39 @@ $ 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 bash)) + +(home-environment + (packages + (map specification->package + (list "glibc-locales" "nss-certs" "nss"))) + (services + (list (service + home-bash-service-type + (home-bash-configuration + (bashrc + (list (slurp-file-gexp + (local-file "/home/alice/guix-config/.bashrc"))))))))) +@end example + @end table @node Documentation