From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QCyVDUwvKmVuXgEAG6o9tA:P1 (envelope-from ) for ; Sat, 14 Oct 2023 08:03:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QCyVDUwvKmVuXgEAG6o9tA (envelope-from ) for ; Sat, 14 Oct 2023 08:03:56 +0200 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 6E78253469 for ; Sat, 14 Oct 2023 08:03:55 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=KeOC0Mat; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697263436; 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=CRn+uXSVtvololfEAIxBdjhEHXr8gPYf4lqfam1MFM8=; b=TtGpafE62dL6NdonBU/NdCnq/nDjnCLvz00aTUN8F6toq4dqeVBVkDwOvdWfQBDGv1kopA KmJx6Ln5Me6YgDuUtI6a9i39/p2uXGO30WRoDdGO7hIPBMiKpHAxUFq4qDXVcNtakVvGxc qkgvaaMqK1oZhxPPGW7hVGyzo8ZLuShQ/Q36Ym7KrctdWc12wulHTmceJf+68Dx/vAKbMX DdAuZPzlJnHXXbIc/rQNGUn0foEkJr/MUR6S3n6vkeDJbIGmQD9/H2I6n8NDDoeUZLJpOP VMJH9O5qarqw/oE4t/Jl31irHuBxDcUien31AR9+ZDWz/4oEHLRGfdvTISjoHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697263436; a=rsa-sha256; cv=none; b=T7lP2kKp4nT6mLIRRDOJqa3pKDrW4tYHUgbp2CiFB1Rb+VcsKhrnJjPRjaOAp60fo+Ux3N LnRf2vr3OUr8iI1zSSPUMgQzjddqBaAkxMP7grp85ydYRx5SdDvAJLYmqsSbipa8WocQ+M vq9nynUCRJr5kR62FmwBS28HeiXHjXKBQE4vU/149dKAYzkuNgXZeX5tejiuZshO9FJXGN UHuwExhCiK69GFexZ1uZXllHZ03mRhsVc2Vplzhc2eiixsOjSAPuaYdQ9k0xJv1V1K8D3x UAowfRNLDqAPgowQ244phuk6N96OjHxKZfk4KtaUUwxmRkaAZJGBBYuK+Mex/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop.in header.s=gm1 header.b=KeOC0Mat; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrXkU-0007Tf-Ii; Sat, 14 Oct 2023 02:03:42 -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 1qrXkR-0007I1-US for guix-patches@gnu.org; Sat, 14 Oct 2023 02:03:39 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrXkR-0002I0-9S for guix-patches@gnu.org; Sat, 14 Oct 2023 02:03:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrXko-0002Du-Ay for guix-patches@gnu.org; Sat, 14 Oct 2023 02:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65119] [PATCH 0/8] Sharing service code between Home and System Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 Oct 2023 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65119 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 65119@debbugs.gnu.org, =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , paren@disroot.org Received: via spool by 65119-submit@debbugs.gnu.org id=B65119.16972634358530 (code B ref 65119); Sat, 14 Oct 2023 06:04:02 +0000 Received: (at 65119) by debbugs.gnu.org; 14 Oct 2023 06:03:55 +0000 Received: from localhost ([127.0.0.1]:47676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrXkh-0002DW-93 for submit@debbugs.gnu.org; Sat, 14 Oct 2023 02:03:55 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]:45583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrXke-0002D6-T8 for 65119@debbugs.gnu.org; Sat, 14 Oct 2023 02:03:53 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 6A6F2C0005; Sat, 14 Oct 2023 06:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1697263401; 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=CRn+uXSVtvololfEAIxBdjhEHXr8gPYf4lqfam1MFM8=; b=KeOC0MatED4RXFiT5f1cHNmXtMzHJtvLZE8V3zz9j+Ou6KDyzLf7h/Gvff4m8SBLDGJgk2 eSSI2Kr9Kto8A0RwPDBEHMPNHzNiXXh5PkObLH6zmnY2YBa0YAgwha7hCRkodiZISPIj0u M/R6I7k0FnrIWvdWpaij5pFjVo5yVAJW7AwlQKkYfsieZui4OZEMRoqo3EfNRnKlka/hV7 jkywSn1F+fwEVUsEx105VQdH1AzmV8F0xrkvFU0pw+eitiZswwfP6ueLJHIvkpTScYzjnj k3WAMfK8kwkFXtSdZAfVh37jLwEYzVIcXDJwnGXRwbJqnA7gVzEUUFi+i6ALxQ== From: Andrew Tropin In-Reply-To: <87a5smik3p.fsf@gnu.org> References: <87ttt3a4tm.fsf@envs.net> <87r0nwh5om.fsf@trop.in> <87jztn3uz1.fsf@gnu.org> <87ttsnoct1.fsf@trop.in> <87wmx0z4u4.fsf@gnu.org> <874jk3sk57.fsf@trop.in> <87led9lufr.fsf@gnu.org> <87msxlxozr.fsf@trop.in> <87a5smik3p.fsf@gnu.org> Date: Sat, 14 Oct 2023 10:03:15 +0400 Message-ID: <87zg0llp0c.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-GND-Sasl: andrew@trop.in 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -1.38 X-Migadu-Queue-Id: 6E78253469 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -1.38 X-TUID: MAY3wzyaqasV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2023-10-13 18:05, Ludovic Court=C3=A8s wrote: > Hi Andrew, > > Andrew Tropin skribis: > >> We have >> >> (extensions >> (list (service-extension account-service-type >> (const %dicod-accounts)) >> (service-extension shepherd-root-service-type >> dicod-shepherd-service))) >> >> >> We can do >> >> (home-environment >> (services >> (list (service dicod-service-type))) >> (service-mapping >> `((,shepherd-root-service-type . ,home-shepherd-service-type) >> (,account-service-type . ,ignore-service-type)))) > > As a user writing the =E2=80=98home-environment=E2=80=99 declaration, I d= on=E2=80=99t want to > know whether a Home service is implemented by mapping a System service > to Home, or whether it=E2=80=99s a fully separate implementation. > > To me, users shouldn=E2=80=99t have to specify service mappings at all; s= ervice > mapping is a tool at the disposal of service writers. > >> Now you can use the same service type and configuration record in >> both operating-system and home-environment and use/ignore/interpret the >> configuration fields values based on the environment we are building >> this thing for. >> >> Of course service-mapping default value can be generated upfront and >> stored in %guix-home-service-mapping or something like that. >> >> This way we will get rid of almost all home- services and related >> configurations. >> >> Keep in mind that it's a raw idea, not a well-designed solution yet. > > The good thing is that we seem to agree on the general idea of having a > way to map System services to Home. > > My take is that the mapping is an implementation detail that users do > not need to be aware of. > >> The reason I'm suggesting to revert this patch series is because it >> feels to me as a partial solution on the wrong level of abstraction, >> which cures the symptoms and also introduces shortcomings and >> potentially makes it harder to introduce a proper solution in the >> future. > > I disagree with this assessment. > >> If this problem is urgent/demanding for you, please invite me for >> working or collaborating on the solution explicitly, I plan work on it >> anyway, but probably not earlier than the next year. I catched this >> thread accidentially BTW, thanks to =E5=AE=8B=E6=96=87=E6=AD=A6 for CCin= g me. > > This problem has been discussed pretty much since Home was merged in > Guix=C2=B9; we=E2=80=99ve all had ample time to think about it and to my = knowledge > this patch series is the only proposal that was ever brought. > > I=E2=80=99ll close this bug for clarity. I remain open to discussion on = the > implementation of System -> Home service mapping. I think further > discussion should happen in the context of incremental changes to the > implementation of that mapping mechanism, in a dedicated issue. =F0=9F=91=8C =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmUqLyMACgkQIgjSCVjB 3rBCIA/6A3SDh1dqwY/irFNntNwKFVCtBA2OR0bgvVFGWwPFFmQdvTG1IubAQyfB 7OYqVEuUiw/jhf2EZOJ3xXtEurzHok6Sj2rayB58b7c04jD7YXdvqQP3cpRA6ftw 4Lhxe/R598mQ55Z1iPYmvbjnN03mZTJKDg8mi2v+eCOi1V1nHOqEF6S5B9KMNPKU McA+vDtPXL+wSgUh/sS1VRjjRMyiSOIBgp2KcR3jUg0pXaEF4vrw+TijFf9sH3Cg aWUpR7PYAUDjXKF3ig/9c1pKGeLJcUPd/rYjGoSErInkZJ4ZvQjMHX5yjGg8eHbb 38ckIwr3r02wSRytkwC1xkeOqZbBKnSnwdL5UYGwNA+jQ8FaLmA3lCYZVPhQlu1Y 0Ef+WSNVxMV2wHpwqUtmNz8WsdihLHC7dsU0wZhbf62jXHAN6XZkqNHmKZ/tLgn9 oVp6feYE8OjELrKM+DGD9nywf8c8D0DRZRlFWRmCw3u2J9rZwXzLdmb6WxjxJLgf CWPgBLW63366hffoeFMnRmmVlKNdNE4NH0ld9BzK9jboEl76Pghm68uuPI92zBi7 lvsDSLGCRAXPexgBExXiD+Uq8Kqj+JHbs8YL3u+1N+00dK66qlCPU6KDGegsw9pK ew8okJ9nlL6MjqvULwAM5rSwves6xel+NdW4+U8YorZI13623b8= =B4uv -----END PGP SIGNATURE----- --=-=-=--