From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OC68GUWYVmGLkQAAgWs5BA (envelope-from ) for ; Fri, 01 Oct 2021 07:10:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iIFAFUWYVmFjPQAAbx9fmQ (envelope-from ) for ; Fri, 01 Oct 2021 05:10:29 +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 B5DAA10DDD for ; Fri, 1 Oct 2021 07:10:28 +0200 (CEST) Received: from localhost ([::1]:37708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWAoV-0006qv-RX for larch@yhetil.org; Fri, 01 Oct 2021 01:10:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWAo6-0006ns-Jx for guix-patches@gnu.org; Fri, 01 Oct 2021 01:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWAo6-0001bM-CU for guix-patches@gnu.org; Fri, 01 Oct 2021 01:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWAo6-0001EU-3Y for guix-patches@gnu.org; Fri, 01 Oct 2021 01:10:02 -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: guix-patches@gnu.org Resent-Date: Fri, 01 Oct 2021 05:10: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: Andrew Tropin , 50873@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 50873-submit@debbugs.gnu.org id=B50873.16330649434658 (code B ref 50873); Fri, 01 Oct 2021 05:10:02 +0000 Received: (at 50873) by debbugs.gnu.org; 1 Oct 2021 05:09:03 +0000 Received: from localhost ([127.0.0.1]:54438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWAn9-0001D3-Dq for submit@debbugs.gnu.org; Fri, 01 Oct 2021 01:09:03 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:48588 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWAn5-0001CX-K7 for 50873@debbugs.gnu.org; Fri, 01 Oct 2021 01:09:02 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1633064933; bh=eH4F0jMKF9nIC8rYtjCfyO8KQvw+md2tDMd2l3v+dXg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=pgBM0xnDu60lXdndpbe1Nck8sQqlo9pvFx5uy5scKKEwnEFTiYfedozILFqbCCjFz tJcm1HlIxg3I1K55xukmRezIBgmVwjyJCRNDRAszou1yCISFezx6xPaR++zkRmAG7J 3A36jQ3YraUoVBuRoX2vcYOIjt87s0LhL2bzedSs= In-Reply-To: <87h7e2o802.fsf@trop.in> References: <87h7e2o802.fsf@trop.in> Date: Fri, 01 Oct 2021 07:08:21 +0200 Message-ID: <87y27dl4ca.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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=1633065029; 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: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=sOFyirEyUwfCCf31DdYAS8GS+admEqVDYSIB2Fw7ojY=; b=FlZxgNfAEs3eMJlR5l5YdXhQ8bBcoxj0xq2fM4ui70YTzW+PwQoC+Qf8rNj51RTiTmAyL3 OEn/0paBRSBAURElIVxRuzpV9mIvm+838b2RAgIiXSgvXSr7muJvgdNQq6vH8yZNYYrpJx m4Ssh7KjJJ5+F8AdfeafhAVSwgQgy5b4bhAQw80MeUaAQU2UvGEJwGJwHb5R2qKa661fUo b2caNJaWoTykqG7CKGDWg5smmGgdCuS7htWJbubGHOgD9MGvj+lpVmzX2yYPi80bKiN+A5 Kw2vOiOmKMhuALoHMIPBy+3XdKXKmkH/bWFcTca841e4X4PS9bPJSnaY6GCCXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633065029; a=rsa-sha256; cv=none; b=gR+VeUhaIejqqCZw5CkH0zZoiOx1Lce2w2zAgdUUDzn9T6BZ6aqYcLHuFUzd5lsPO9bok0 Jssv7Jm1JBHV/Rhdgsj3WtXbf4acHJe2bqnbdb9rpLeVdCj4ABskuyySAB6bkuudi0SLF3 vwKfRKw1GHskczZcKI8p70aU5t0ljP+S99pPbKyaMLGAG2TJJFDW6fpi+wuRfLU5lABK8G MlSo5irLEbaqJ7wpi2eKRufy1JoUvb9UyT398ATwSD5UirEsXYCKcSdBSKNr4ZZwkRTjtk ImD0ZHLHnSedmOMBCD8rcVP/te2hYhljFW8w460nN0ivyAolA7VwXpTqsivh3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=pgBM0xnD; 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: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=pgBM0xnD; 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: B5DAA10DDD X-Spam-Score: -3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6jP+5fJEEI8I --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Sep 30 2021, Andrew Tropin wrote: > On 2021-09-28 19:36, Xinglu Chen wrote: > >> * 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=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 on= ly >> +;; specifies package names. To reproduce the exact same profile, you a= lso >> +;; need to capture the channels being used, as returned by "guix descri= be". >> +;; 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 > > It still uses slurp-file-gexp, which is not upstreamed, but overall > looks ok. Oh, I thought it was already upstreamed, my bad. > I'll make a rationale behind this function and the approach I picked in > home services config serializers and will prepare some examples next > week. Maybe it will convince Ludovic or maybe I'll change my mind and > rework configuration records for home services to use file-like > objects. OK, then we should probably wait for this =E2=80=98slurp-file-gexp=E2=80=99= discussion to reach an consensus, then I can send a v2 for this series. :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFWl8YVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5TlkQAKM1l2hFEfwGDQXUHT1E7raJE0pZ lLHO/q6OcJ4JlHJL9/Bq8QN9mJwSqVTI7T4d3oyPI9v+//20/vlZi3qoFL835/iO S7BWLUE9Il5HF4IE61dsgpA/e96+xEL9Lm5UkG5kdgT2RZc4hP5ePgbZ7Yve1vYi zFXZqSsmvxyrqT+nHy1dOgitHee9l2tYTHHoShLuZQ9bT3xKHFjDEmtR298jbqts JQ52fPP/BDHekY4kcMj3Y4ynKr5pql6hPlwHkyZDZfkuLoAznt9S21zDexGkAzFu Igq+yM0pdgmfHjEkuZKgDEIBjaqgVN5rJR9V/Y0heoKXM0Au3VW9pzDNv5MkVePZ anUz3fJOuyC9sFHslJCjscFDnBR6KfG/jho7rOhPTZlu9+le6QGfR8rId4f3ha5d rA8GewJwwXw4cpTaeyJfORhCa8aujjd5YcE+XJTcpfQSCJ6UZWVi4qFD07UYzGr7 ANdj1gccYVZk33rWN3K3cW1CcTTMK0gOSXK5Asc659FGtyojxRDD4Fzp2qMXSjSh uYLzwwjmP9nLRNVt7KSxPZdT03SeHigYVQY2XvjFtP29B/sTVtVAKOE6mlo7EPCa m3Rg1jVXY+caTO81EU1dtbMHYRJET/z9l9NCNvnFiWhbZlL1Yilsl2YYd+E2QTiN r3+13qyXQ5KU4B55 =cHO7 -----END PGP SIGNATURE----- --=-=-=--