From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KNXEC9++YmEDDQAAgWs5BA (envelope-from ) for ; Sun, 10 Oct 2021 12:22:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yCSFBt++YmHxaAAA1q6Kng (envelope-from ) for ; Sun, 10 Oct 2021 10:22:23 +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 C069A299CF for ; Sun, 10 Oct 2021 12:22:20 +0200 (CEST) Received: from localhost ([::1]:35188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZVyF-0004ll-S3 for larch@yhetil.org; Sun, 10 Oct 2021 06:22:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZVx2-0003an-AN for guix-patches@gnu.org; Sun, 10 Oct 2021 06:21:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZVx2-00051k-2j for guix-patches@gnu.org; Sun, 10 Oct 2021 06:21:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZVx1-0003PW-Vn for guix-patches@gnu.org; Sun, 10 Oct 2021 06:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [PATCH 6/7] 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: guix-patches@gnu.org Resent-Date: Sun, 10 Oct 2021 10:21:03 +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: Oleg Pykhalov , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Andrew Tropin Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.163386124613011 (code B ref 50873); Sun, 10 Oct 2021 10:21:03 +0000 Received: (at 50873) by debbugs.gnu.org; 10 Oct 2021 10:20:46 +0000 Received: from localhost ([127.0.0.1]:54505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZVwk-0003Nn-La for submit@debbugs.gnu.org; Sun, 10 Oct 2021 06:20:46 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:39852 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZVwi-0003NP-Nu for 50873@debbugs.gnu.org; Sun, 10 Oct 2021 06:20:45 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1633861239; bh=4HZfDpDQv6G3L+iHcmw74LWqfAhU9l5R7EPesFqqw2E=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=GqUQLCzFhZIMgBLsHeCgCrNyOrSzNpaH3CaLAu8nbCTtJtYYpmNzW7PLyS83i0/ic WNuxIK44M2XIsMLTbmfN+uVOnOkuf6d51IRXiM7keVxPoxVy6fTKmoXQ8A/sjCaA59 0RbC0Xoiy6ftc3V4FUB2zZLA64CzHdAjnOY8866M= In-Reply-To: References: Message-Id: Date: Sun, 10 Oct 2021 12:20:38 +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=1633861340; 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=mC2kz6GvFbSBgrHDWe841nwt1l3z8SD4GRJL9tV7SeE=; b=XP7CFzPmLrSNfAiTzak3AxU5Ygk0wg2qdDOpS4LonF5+lXb4eCYLhlhYXIEztC2q5C5Fhp e3YSaNAqXK1+a5lD1HYd3cRXID0JDPh60O9qBwm4pphNylMwcuLBa+XG0iplE9tFFkfakw zXm+HsQJO6yMIYqllUZCSMx+UEx1d11idIxHfGD9eZT60zf2mjfDxV1Hmtp7LGXg4M/ODj 1xKteZ9Zl7bVa9MJZ91Hfb/3VcPHFo+/+njE3mx+Ai9cWxC2KWiy89ADeg6tYozbjgOXYd bi19v5tXoeLwZXYgQNBqVg71uQlPbDFEq4jH+rtFfFN3kNPqQCnKIadcyXXwuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633861340; a=rsa-sha256; cv=none; b=BoakUf9IBcgxwiO8N3pAlnG3SBCOAiW4T/B0beZcLbx1eT+2hMduZzQ75LZ/AIjESj+AcM 8QXZPuPGAese5tx5bZUVBgNuZwKin/LVAvokIdmN9taY0/28NGnFd7WaFNYdVHS2VKzqFZ bgEIa8eSkU/TU1ocMN2EiaRU3qG4wI7mt9UWQ+oEr9BmnQ1dzs6qFWei3rgLvNISufAcYV 5daXuBDW2AQSxsk+uo/ZMhYJdhBqx7wnPInZIshH1RGE1ajY4Ghz0FpvVMUUp7YIR8Wkad vix6uwPgxwl1RJwscJtQJUFqC1x8OdLeGypNZGB6GDYDg9x8dfG2J9huAij59w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=GqUQLCzF; 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.79 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=GqUQLCzF; 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: C069A299CF X-Spam-Score: 0.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: kBBVvVTeiVNK * doc/guix.texi (Invoking guix home): Document =E2=80=98guix home import=E2= =80=99. --- 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 =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 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 =20 @var{options} can contain any of the common build options (@pxref{Common --=20 2.33.0