From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cAyqH8RSU2GTXgEAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 19:37:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QBhuG8RSU2GOFAAAB5/wlQ (envelope-from ) for ; Tue, 28 Sep 2021 17:37:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1DEC94FC for ; Tue, 28 Sep 2021 19:37:08 +0200 (CEST) Received: from localhost ([::1]:44188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVH2R-0004NK-8z for larch@yhetil.org; Tue, 28 Sep 2021 13:37:07 -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?Q?=E2=80=98guix?= home =?UTF-8?Q?import=E2=80=99?= 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632850628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xjTVfZCkv0eaEQjptd9lMOdlX9IxrdcFh+Y2yEqvbhQ=; b=fvyj7goto0BYGbgvo5bOhqMMQLhWHA2tkcBxWSp8mMDW1VUPc3lhRoA4PmVSmaGUETm1wg Mi76nlN2NP0VyzNe3S983Vx8hRBUNxgJQrxVFM34yslvLDTR7TVAAGwbh53fESecti1kkH uXCv6mE0z6L2NNC4yVMlcxkD8ucv6tC48zySUtA6LRdwKvW8Gc4bT51XcMtwQp1kU9kF30 0aBUDcwgEckcSLKq2o0T+Uyqm5dgno8MzhR6qR+uR85eVUPuCZlg36ifAXj14ne7s0TnyK +5Wncg88UlO0VK8CYrf1itPA8/MmCVeCjvaTyl0qXDRchnnt1323F2UWt3LPQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632850628; a=rsa-sha256; cv=none; b=RrJBpvovgfmYvGauve6vWN6AOfOqsOhPveebC4nJ8jqAp0t4D3mcGrxi0amtYEio0FWdWH 2Ng6nDrBkPRqAdMVrRuySJcyF188sZyEa9cxgPJsflSCA1sG+7Eu04VavkJwMBeEtcU4l1 fwb0zUdytTFZVaps+58PEIW/zLNl3ut3hmHhsnOVgFziJMleTyd1d2Esh6RIY5K9EIB/Vu dvOEvsmL3gEMC8VDFeHKwxEYdJlk3I0L2VHgr9jh4ftbq7TLQ/RjCxqbgBsfaU4iQFae70 NffThTRGulXW69BBrPTTOIGnm91bcNicPVlq9TQTHeSIZOkWCdgp8HFzB5YRMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=VhTB1R46; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=VhTB1R46; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1DEC94FC X-Spam-Score: -0.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: 20VjIPS/Xfb1 * doc/guix.texi (Invoking guix home): Document =E2=80=98guix home import=E2= =80=99. --- 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 =20 +@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 =20 @node Documentation --=20 2.33.0