From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wCS5AqJbVWHs9AAAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 08:39:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MEH6OaFbVWF9QQAAB5/wlQ (envelope-from ) for ; Thu, 30 Sep 2021 06:39: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 13A0918E93 for ; Thu, 30 Sep 2021 08:39:29 +0200 (CEST) Received: from localhost ([::1]:42096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVpj6-0001Rc-5U for larch@yhetil.org; Thu, 30 Sep 2021 02:39:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVpIT-0005rh-LX for guix-devel@gnu.org; Thu, 30 Sep 2021 02:11:57 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:45777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVpIQ-0000Xu-E8 for guix-devel@gnu.org; Thu, 30 Sep 2021 02:11:57 -0400 Received: by mail-lf1-x130.google.com with SMTP id u18so20658198lfd.12 for ; Wed, 29 Sep 2021 23:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=T7y+o27b1aveBWxZh5axRhweADsYc+7kU++aYwKNZEA=; b=7y0P7Kd8biYhLkmU2WvWNIS4JCGF3Z/szr+lcsNON6izyvfwPvqeGx/QK77bjQVicf IEH5eVQbNO+gWiyKRGuDle9LMYabsOY7xt8n7zbLeTl1EPTwHp7xbF/49UsAK/qfdd2w V0t79+t7YDvtZ3fPnNSfIBZMmsRhvDkdtGn2AqcinoV5yWEuTXC5LRaf9cGW5YXSsYKD 8Wuc0ixMnRu36zE4MhoUCcCl/XYTU13A4UzOZi8yaXdiZB0DpWTQWIeBg1rjEdDBaEou 0Hc47L+nMH4NWpTJDpBnU7uDVxoPVfv4V8K3/qEErcxyI8yaHRQn5cZLSODmsHwxk09W 2P3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=T7y+o27b1aveBWxZh5axRhweADsYc+7kU++aYwKNZEA=; b=Un9jIW0ctobHY14a1QwLi6hAcehLhbKknZ/ai5aW8J1Ckw4eraTW9WR2i8tkpMkK6c ku+Sr3cvFdXOjRBDVD5vml1asfIqAdjDGI+nxrzNt36PxGCc28kMWQX1jA5sOcez7Ea9 eKV3O1GAgdGyLl0XW6bj2/4zRkKIcYlbZEzowtDJRtyoJ1dxp1lUCXh8lbXAO5lI1o1l JSNOjf7omc8P/UPhCs2UzfHI0VKlS3lYnKTD9HhvZvyjPGNOfH3b6HNujKCjAOHJqUIi Mofj6PRtNpoHBMoq+LPmPyEJYOr2rOxSFtABPsy3jeiWqLUwM2XbnPE5s3lP678RJyHV /Rcw== X-Gm-Message-State: AOAM531UpSKccZMj5h/bShDVv6mvkYrWjKyex65gn19e260+5yHNjki9 uTevQP/3fAqlBNPSvHfObGna3g== X-Google-Smtp-Source: ABdhPJz4c1zcsLN/ib2azQXQugzFam2W/VKCIK7nCc+pPY6oKJ9ON8C2IIGUrTHQQJ5QnwRc6JUGYw== X-Received: by 2002:a05:6512:6d0:: with SMTP id u16mr3883031lff.641.1632982310431; Wed, 29 Sep 2021 23:11:50 -0700 (PDT) Received: from localhost (109-252-140-132.dynamic.spd-mgts.ru. [109.252.140.132]) by smtp.gmail.com with ESMTPSA id n7sm249155lfq.255.2021.09.29.23.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 23:11:49 -0700 (PDT) From: Andrew Tropin To: Xinglu Chen , Oleg Pykhalov Subject: Re: Merging wip-guix-home to master In-Reply-To: <87y27f1uh2.fsf@yoctocell.xyz> References: <87sfxvehyf.fsf@trop.in> <87sfxujdp2.fsf@yoctocell.xyz> <8735ppgg6d.fsf@trop.in> <87y27f1uh2.fsf@yoctocell.xyz> Date: Thu, 30 Sep 2021 09:11:46 +0300 Message-ID: <87o88aoan1.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2a00:1450:4864:20::130; envelope-from=andrew@trop.in; helo=mail-lf1-x130.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632983969; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=T7y+o27b1aveBWxZh5axRhweADsYc+7kU++aYwKNZEA=; b=ug2YEBwvM9fx4+Y9apMRVKfgJ2f3mhffqny/sf9W2KmHQd74RWvybzCIreq5meYNboBeMC FJMYOOQS6IArUWxrrcwkLt7aleOPkfi6ksYiV3ElVSkVS0udrTOnGBWB3gNUTredkmXB5l vFeHFziSRwKNjx7C2YzPPQycdbyUaE0jqysIHEqdgToyQ99OYOc9stw5pFRzTcKm7ULV0s qMdPOXHD9FeGulhk8h59H6n0ZFw4kB0qQHC6aX2/tqiATv+QpbqnwKpWnQKkAwSqRuWYbk QnQ/YUpv3oSOCckawjarSLrA8wyj6JfM2Hh3S8pNLemf3h3Hr4Yp3shRNkOz0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632983969; a=rsa-sha256; cv=none; b=j2IaLEp3fmt8PatZ+rt0mwFVNbxJ5uU7b0cn2gGKNORDs6NdE38u0DYa+lbN/u4bx4y9mo xASYNaUprP7qfhlgMGwdUq3j8GkYpt5rA1ewq//8lWBVtgvNMTMhhl9PwfN1v2LlkMPtlW bD4TUetBydRy73fspWPh4UDHtBiGabqCoTEWzL2Csq0zOyVT/nlWyxS2KR0rsCI3ykGRF/ yih/709XfbMJHg4BfsH2CImufVL6xsqBfvMIdVI9wHl18M5o8sFfSZmQsOQgJdfk6ztZm1 SnOvavUs6OuNTF4Hc58b71IRXNXxF+krs0xIil4zSen+rFXemA8Tdpvknrwcrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=7y0P7Kd8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -4.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=7y0P7Kd8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 13A0918E93 X-Spam-Score: -4.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: T47/JBR1lll5 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-09-29 13:39, Xinglu Chen wrote: > On Tue, Sep 28 2021, Andrew Tropin wrote: > >> On 2021-09-24 15:38, Xinglu Chen wrote: >> >>> On Thu, Sep 23 2021, Andrew Tropin wrote: >>> >>>> The core part of Guix Home project has been moved from rde >>>> repository[fn:1] to wip-guix-home branch of guix repository. >>>> >>>> I'm about a week on wip-guix-home branch completely and Guix Home works >>>> fine. There are no any major issues on rde-devel and guix-devel maili= ng >>>> lists and it seems that branch is ready to be merged. >>>> >>>> My guix describe looks like: >>>> --8<---------------cut here---------------start------------->8--- >>>> Generation 114 Sep 17 2021 13:33:55 (current) >>>> rde 31f8003 >>>> repository URL: https://git.sr.ht/~abcdw/rde >>>> branch: without-guix-home >>>> commit: 31f800353a781cef25fc80c05ad824a068a049c8 >>>> guix a2324d8 >>>> repository URL: https://git.savannah.gnu.org/git/guix.git >>>> branch: wip-guix-home >>>> commit: a2324d8b56eabf8117bca220a507cc791edffd2e >>>> --8<---------------cut here---------------end--------------->8--- >>>> >>>> >>>> There is a discussion[fn:2] on moving home services to (gnu services >>>> ...) modules, which is likely to happen, but it's possible to do the >>>> migration relatively painless by re-exporting necessary symbols in >>>> (gnu home-services ...) at first and removing them completely later. >>>> >>>> Another important part of the work related to Guix Home project is >>>> covering related modules and cli with tests, but it can be done in >>>> parallel and is not a blocker for merging. >>> >>> I noticed that the =E2=80=98guix home import=E2=80=99 subcommand is inc= luded, but I >>> think it needs more thought and feedback from people before it makes its >>> way into =E2=80=98master=E2=80=99; it also seems to lack documentation. >>> >>> I just realized that it generates the following service declaration >>> >>> --8<---------------cut here---------------start------------->8--- >>> (service >>> home-bash-service-type >>> (home-bash-configuration >>> (bashrc >>> (list (slurp-file-gexp >>> (local-file "/home/yoctocell/.bashrc")))))) >>> --8<---------------cut here---------------end--------------->8--- >>> >>> but when running =E2=80=98guix home reconfigure=E2=80=99, the ~/.bashrc= file will be >>> moved, so when running =E2=80=98guix home reconfigure=E2=80=99 for the = second time, it >>> would read the ~/.bashrc which is itself a symlink to a file the store. >>> =E2=80=98guix home import=E2=80=99 clearly isn=E2=80=99t in a usable st= ate as of right now=E2=80=A6 >> >> Yep, I remember that it is not documented. I think it's ok for >> generating a simple sample configuration, It was two independent sentences. > > I disagree, I think it=E2=80=99s OK for things like (guix git), which are= mainly > used by developers, to not be documented in the manual. Ideally, the > all the modules would be documented. :-) > > However, =E2=80=98guix home import=E2=80=99 will be used by developers an= d regular > users, and documenting the command should be a requirement. > >> but I agree that it's not yet complete, if you wish I'll disable it in >> cli. > > I have sent a few patches to fix it and document it[1], so it should > probably left as-is for now. > >> Just an idea for the future: it's probably better to copy .bashrc to the >> current directory and do (local-file "./bashrc"). > > This wouldn=E2=80=99t work if the user doesn=E2=80=99t have write-access = to the current > directory, nor if the current directory is $HOME. I think it=E2=80=99s b= etter > for the user to specify the directory themselves. > > [1]: --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmFVVSIACgkQIgjSCVjB 3rBfMQ//WUwtTOxbhbhyR7TtSyqXwTfJnsI7Oltqzd3jMMD0S9bJlwqhKrexAo4A RFGN6hzndTGdOaXne07ZEGhIu+PNlkstssPOdGPylSAdvPtEKIfHRaySrg7cH1Nk 6DFK9lrA3SpMDIu85NzaZ6AuOM5PiA85/S7+gsgyWmRgWTDWj6CQf6c+uhPPpJl8 noLGMM7hHqN1rx2W+2ugYK3GcqfIVz3zW0yuXnGLXuXxN2cfdpFrwsFirREkPigL ippgFhBc1uMXixRKffx2nBcrKWFnOB49zHUwcPe6zBeTwU3kf6V2IP5yeQm4qyjR 3RzTc8Vpc/IVkYQql7ubhbONEm6lhr+X5O4nycX7++9J6pq9LhYBaiQJiCmcbCAB jRTRCPfOTbG5skGByIM8zaWoCmsGV7xW/5qp566orLx/7Tw2VuqxS4BLnlK7OqZy zUg+A350s5JjMAIMpW/xEpRYF8KyP3HgBq/1+uKx2JilNRNa46Byl0F8l3Knw9Kc YfJMBb8EFY69Kbnfresa+DLwVk1HBdMmW43izlHbKP6cos4Y+ESF5ccTWvWxyfi5 +jx9QYmDPevJwCNgwwLeFUEL3OvXfMKrszwfHSyfpIfvQii5F3n6VYOmDWczMwGc sUzRO8qDj+kqgekS01wQhveeDP13WfpEKv2z94bLQ8WqDdtgUm0= =Mb5C -----END PGP SIGNATURE----- --=-=-=--