From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WLAGA8UhfWGkowAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 12:43:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 9IeTOcQhfWH0RwAAbx9fmQ (envelope-from ) for ; Sat, 30 Oct 2021 10:43:16 +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 C79853E5EB for ; Sat, 30 Oct 2021 12:43:16 +0200 (CEST) Received: from localhost ([::1]:51526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mglpT-0000z1-UX for larch@yhetil.org; Sat, 30 Oct 2021 06:43:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mglpH-0000u8-Eu for guix-patches@gnu.org; Sat, 30 Oct 2021 06:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mglpH-0001sP-6j for guix-patches@gnu.org; Sat, 30 Oct 2021 06:43:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mglpH-0002bQ-5Z for guix-patches@gnu.org; Sat, 30 Oct 2021 06:43:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50873] [PATCH v3 6/8] 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: Sat, 30 Oct 2021 10:43: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, Oleg Pykhalov , Andrew Tropin , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.16355905649920 (code B ref 50873); Sat, 30 Oct 2021 10:43:03 +0000 Received: (at 50873) by debbugs.gnu.org; 30 Oct 2021 10:42:44 +0000 Received: from localhost ([127.0.0.1]:56720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgloy-0002Zq-Cp for submit@debbugs.gnu.org; Sat, 30 Oct 2021 06:42:44 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59288 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mglot-0002Ym-To for 50873@debbugs.gnu.org; Sat, 30 Oct 2021 06:42:40 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1635590559; bh=b2I1puvfEgZK0r8OCRM0fx0ZujqguLZnSkyEHQd8OLY=; h=From:To:Subject:In-Reply-To:References:Date; b=K/LJIPvs3KtwMnODfjucPhc4qOSfyTmQp2Ii4y2ySIRRSWR725q3/xNNnJwR5FnZF d/1IdWwwGxMa+XTCW/1+49ZtzFeE8qHGfY/vUN5dsFxDeFavXcwQZU5ni1tZnai69u A0lMVzciu0q5HxaqQuo0scwLKVzqpxav+/+C2wbs= In-Reply-To: References: Message-Id: Date: Sat, 30 Oct 2021 12:42:39 +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=1635590596; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=BansOJ4+uhWzDseF1bznH2NS9uHbQAdoEWmbdguhRo0=; b=k0jOzvgtZuX2wigNSrdA9BoV4FB/qUruKcAPxVKGdFCDGEtPyhFIVPnUjx6IRFbBWyXSwO IBqBdgtvw6ANhKrVakgMDopJBz3AvZLbcehWGMhiM2j2UR5z9+D58bh/ybf6LNtrv/zGWg yJ6nZUFQTxcVWN74zBygvFl1nygjd1K2Gl7yf5tRtpG1Ho5+aCCur4lF7WYQO1VZ1R1Rz9 8oI8Gjs4SZHV3lf8oHKSIgTGHISG3w+OkkoO2/3mFrw6XwFrziTVHnR5LKKKuLShFStX9M 0vtaQ+cll1/te8l0V8gFK7KX75QJG3M6sw/7QdBm7BveiPsGBC6qJ+zs+idCAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635590596; a=rsa-sha256; cv=none; b=K2U29v0ehvXBPi7dq0fALMXvQdVm+697bvfWeOTTm4Px5RBvlMzLQLIBOBNcZmyJ367CdQ d3L73kovxJ+bSBH6WM2H9DI/mXWrePOzm5WIO3yLt3d0eSTT0U3mYcGwIDOasTzHz5pH2n 7Cjtnc0CL948UasfY4D5dcHj8o+ix/4G7zFkptB9IsR1w4U/HiL4iZdnrMo5iDdPpBtgb2 HHvF7nB8Oq1aLomd9R+7keT/P1Wfn8RtZXmBANHa0XbLdEEAgamsv0QvSxeb6vcechtNbi r2B/wmRAwVTQeXFvbbQx57ncg4KLQvgEwCzUceGrZz0eM/8YYzkLeIZpvRB8MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="K/LJIPvs"; 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: 1.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b="K/LJIPvs"; 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: C79853E5EB X-Spam-Score: 1.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: JGVUk6boWHYA * 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 22215214e0..3c069912cb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -36509,6 +36509,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