From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aOuXMoOzGWQ//gAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 14:39:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CHOEMoOzGWTWOAAA9RJhRA (envelope-from ) for ; Tue, 21 Mar 2023 14:39:15 +0100 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 776BAED14 for ; Tue, 21 Mar 2023 14:39:15 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=MQZzAWpb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679405955; 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=IO1mHL71gDsxBFGzDfNDZEAxG51kqqgEVadGlHVmN+w=; b=VORL7DmybJn4UDi9GxqlmZE+y77iExrQ0erunZ5IM9/QrvjMCz3hRhCCyKZ7QKqQuOLyIo 9t4Tz+c1dyAbEyYbyOvSzxRPjiqMZEERxIhv9zukTzOhWLBEus3Llu6zHJ9K6l5FuHoK0o wSH5ZBcbIQzLHYqidoAfeMZ/xSFR4bk5nOzEBssV6ZswSfO73CNuEuKLqeg36+2TuT0Kds c3STV8REo30hxLDva9+/Dhai7DQwSi6+DzqjRunTZrNtmVP2uKt6JY+OdDdN9pXFLPyxlK 4C3hq17fkD7labNVwShUX1yZa0ie4AABQM0JFln9Qwa9WPI03ZIUNLmF2tEXhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=MQZzAWpb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679405955; a=rsa-sha256; cv=none; b=bp24X4Aw9lbNyfSKrM/dx+PTQv0cy/OKAvUxzGlyh62odqcE0LyWk2XU0+frVbvY02gZAx oSZPjbb2ssmXfiQf7XMZYTA5vK3/VUwk7xg+LiPOYT67IHoW7F+pcX4ucYQ2d4aux3EfGt 8K1SYbrBVbnmLXBFNrNW1vq6jASuOZUAP8t2Cte5saIJHOfT708ygvaOwq0lSMOvIxtxau q4zQ2KQw0DBlXUMOe4PusJPDoJSbzK3NCSLCIrwGlq00hIMqnMez2M9uHNl1thWdkmABX3 WpOKxIvZc96rD52SfV4WsXk0zOkGUp1Y9Zvi2vqSPTvcEQT1FGGgNOaDzskFgA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pecCe-0002iv-B5; Tue, 21 Mar 2023 09:39:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecCd-0002dt-0k for guix-patches@gnu.org; Tue, 21 Mar 2023 09:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pecCc-0008Kd-O5 for guix-patches@gnu.org; Tue, 21 Mar 2023 09:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pecCc-000197-Je for guix-patches@gnu.org; Tue, 21 Mar 2023 09:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62274] [PATCH] home: 'home-environment-with-provenance' uses the HE location info. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 13:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62274 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sergey Trofimov Cc: 62274@debbugs.gnu.org, paren@disroot.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 62274-submit@debbugs.gnu.org id=B62274.16794059414397 (code B ref 62274); Tue, 21 Mar 2023 13:39:02 +0000 Received: (at 62274) by debbugs.gnu.org; 21 Mar 2023 13:39:01 +0000 Received: from localhost ([127.0.0.1]:57965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pecCa-00018q-He for submit@debbugs.gnu.org; Tue, 21 Mar 2023 09:39:00 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:53461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pecCY-00018d-9Z for 62274@debbugs.gnu.org; Tue, 21 Mar 2023 09:38:58 -0400 Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 5FF426000B; Tue, 21 Mar 2023 13:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679405932; h=from:from: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; bh=IO1mHL71gDsxBFGzDfNDZEAxG51kqqgEVadGlHVmN+w=; b=MQZzAWpbgDq2vmZmZw8O3FvSg/dh4z8RbARofyY3RDFZKLAm3HY1PeE40/AHE5SApVMIlu bS9TwXevyfa/0WMtIFOVvAZxyFyMgUi7ZyZ3IfxyeJS9PrgEs3mfCdvPYDB/gjJyEYUs5i NeXqk5Stvi1c5RRwGOC0obnK6XsXpeeddj4Abag32xxQMfk1dja4mI8f0Hw8BVJ2SCbdX5 OxZ0zoFvTaY3pTPiS86z6jhB0awZVjJttHAuCufvlBYWBzSR6ThLXEo6uzzKNYryqOU/x5 5xW2IRlsEbX6PhKGo/5IKFnM1fjc/PLZho8vTOsOR4pbvCL/c1hDQTF/lhVJWw== From: Andrew Tropin In-Reply-To: <871qliffrs.fsf@sarg.org.ru> References: <20230319154537.30463-1-sarg@sarg.org.ru> <87bkknl443.fsf@gnu.org> <871qljs0ju.fsf@sarg.org.ru> <87edpiz831.fsf@trop.in> <871qliffrs.fsf@sarg.org.ru> Date: Tue, 21 Mar 2023 17:38:47 +0400 Message-ID: <871qliz0k8.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; 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: X-Migadu-Queue-Id: 776BAED14 X-Spam-Score: -3.95 X-Migadu-Spam-Score: -3.95 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: KYFJCVgGOQXc --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-03-21 13:22, Sergey Trofimov wrote: > Hi Andrew, > > Andrew Tropin writes: > >> [[PGP Signed Part:Undecided]] >> On 2023-03-20 20:03, Sergey Trofimov wrote: >> >>> >>> You're right, the new signature is not used anywhere yet.=20 >>> Though >>> I'm working on a patch to embed home profiles in disk images >>> produced with `guix system image`. That's where this method=20 >>> comes >>> handy, see example usage: >>> >> >> Also, take a look at this thread: >> https://yhetil.org/63960cf762aec1ed2c4182f49cac66bc37fce2aa.camel@rdmp.o= rg >> >> and this prototype: >> https://git.sr.ht/~abcdw/rde/tree/044de83e980b7038b87d27a090aef24229df85= eb/src/gnu/services/home.scm#L1 >> >> It can be related to what you want to achieve, whithout=20 >> modifying >> image-related code. > > Brilliant! That's it. It didn't come to me that `home-environment`=20 > could be a dependency of `operating-system` and not of the image=20 > itself. And you also made the service to activate it, so no manual=20 > step is required. That's exactly what I have envisioned. What=20 > prevents you to mainline it? It seems you have already=20 > battle-tested it. > > The only concern is that I'd rather include=20 > `guix-home-service-type` only in the first generation of the=20 > system. I think that this tie between user envs and the operating=20 > system makes sense only on the first boot. Later on the users=20 > should be responsible (and able to) to maintain their environments=20 > independently. There are a few issues I've not addressed yet: 1. User can login before activation finished. (Discussed in the mentioned thread above). 2. Do we need to activate it on every system reconfigure? (Actually, I used it mostly for creating rde live cd and vm images, so didn't test much with system reconfigure or guix deploy. Also, I guess it would be cool to add a one-shot? flag to the service for skeleton like functionality/initial provisioning). 3. Probably something else I already forgot. I still don't have enough spare time to clean it up, test and upstream, but if you would like to finish this thing up, I would be very happy to help! =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQZs2cACgkQIgjSCVjB 3rCB8w/9HMzKMMSXpgKSpmc+dfgLhtLFPv6LHdN2XqMiWMtvVLqBBUSSys6ODkRf 5Y9mWcSD3pDN8KnjTCCzXpydTalud0U1qk/oGLnvHCB54gvj3TreiSk5gwtbKZ/t Jagc9IWESpb5cuYmRYiBzKFAwb1FPe0zDKO/Ut/Ej9eU/UzR2ygyjhDSmud7eQgZ TvrDr6Daz2q7yGccsu/wZ+tZzOzIQXiZu4FV+N3KmF5jFCtvFFbu+5Jag8bBlH6A vTlBvG5snOq/C2Op6/e+BJaYm6n4nTzaKJWUYajpmliY9IotdgXYO+ORt5i44fSh acYeRvv2me+aJ2Vk8qlbEOoVOAfXMJXci6kobpEklR1W/sYVnMSwJC6knGfUxZ3p 1Jtb/TPiuU0yUJOg1OK5vFjODbcvPCLF8HILv3iVBAZ3qyoZJ2Xfi5ubgpI9HoFh 4tAK+obV31jng2GVtjyi4xDDDrDnHhT8hYIygrN5cUJ1LQ5bYrLqomZkj9t9iwjc XY7FMu85/PINFj85dAEUfFrIhqCDpO2b6644BnDJxnHIxAtrU5XCta5s5QisTSA+ n/UAdTh4iYy/Dzk8GwRcNArhn+mr99G0s+yPALfSk9ry7laHI/W1ItLpQGNxDK6m tsrFuLvtEyba3r/QfPKwKe6WL62OjH9/EPgmRVASWwWKhDr1jZ8= =acDn -----END PGP SIGNATURE----- --=-=-=--