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 AIfSN3gWQ2FjTwEAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 12:03:36 +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 eDJjM3gWQ2F5NQAAbx9fmQ (envelope-from ) for ; Thu, 16 Sep 2021 10:03:36 +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 2126514F49 for ; Thu, 16 Sep 2021 12:03:36 +0200 (CEST) Received: from localhost ([::1]:45678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQoEv-0007gm-S0 for larch@yhetil.org; Thu, 16 Sep 2021 06:03:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQoCj-0005yB-Fx for guix-devel@gnu.org; Thu, 16 Sep 2021 06:01:18 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:37604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQoCg-0006Jy-Q7 for guix-devel@gnu.org; Thu, 16 Sep 2021 06:01:17 -0400 Received: by mail-lf1-x135.google.com with SMTP id i4so16280149lfv.4 for ; Thu, 16 Sep 2021 03:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=LSqsjCInIa2YuV5OpuopRjJDqPznjmuP6slpDcx0ds8=; b=sep4984h+IWh7qI116cTPK6N0ZdagcYXa8SakbUZ77Saa93/iOGCLusUCB2m8gxGxq BaaX0lQOcQgoERPVgyBNc9aEMZLiSo1QKmEmBPpG0gEq0JdblzK2YNQEd30CujcQheOh S8iQxhMFEOH5v0ypYs0pl0k7f+K58W4ROGAdr/VdpJ3Q74DJqc1ols6h8dYar/b2mYPf pLMKIzQSyOJURTzDzk5VDqiRvmbyewydXBlIFvnLxQssx53Xcm1Jvr4iqSk8Op1X8+U7 PUb8ajY2S8vEC27sCXLCxVdV70p4A7pfqZQLycNkfZZgIKbGhPfxeFOZxMfnd4KvC8wj yhzQ== 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=LSqsjCInIa2YuV5OpuopRjJDqPznjmuP6slpDcx0ds8=; b=M2LHDnUflanOj41keCOMWSbN4Gd1Dby+nZ3RHgF7W8QXgyDpqEswVjK+QS7ktZdvUM VuNCrL367WDI3pAr+xiAqPefMh/c4M5CUsQta9IsKAMJLeOxCoKMyel8AAAMoEpoLqE1 bfcUvEcRHxBiG2wEV2tkdHsbTVShQfqaATGIPt5atkFP0B1Pm/W8UqRm2Sa1JA/MJSFn n+G0R1frctntzbiX2akKdfYMBy3c8Zh1hkHvi1H9YjVrGNeWzwncdck1Va6TABuFexJ1 eaGLj04FaaOr8m2/AhX13/pefB51ZhsTT2QVX6jI42Myobk8Z0ldbQADiZSXci3fbd8m O68w== X-Gm-Message-State: AOAM531Qj7EwFeyMh5AgSfE2kpHNxR+ct1kzJcmfqL3Mk0VsEkTNYI3n VwmAJY63YMZ2JBHEyqByTqa00hoFeHk2SQ== X-Google-Smtp-Source: ABdhPJwp857y4OnV0hiJ3ZX+hj8b5BO6AfDsV9ygkfGgnLPYG8nGjFSavECMrGBAYY85F75y9o/H4w== X-Received: by 2002:a19:911d:: with SMTP id t29mr2636907lfd.407.1631786472722; Thu, 16 Sep 2021 03:01:12 -0700 (PDT) Received: from localhost ([109.252.93.92]) by smtp.gmail.com with ESMTPSA id d19sm216926lfa.252.2021.09.16.03.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 03:01:12 -0700 (PDT) From: Andrew Tropin To: Katherine Cox-Buday , Xinglu Chen Subject: Re: On the naming of System and Home services modules. In-Reply-To: <87o88t3nbf.fsf@gmail.com> References: <87zgsei5ta.fsf@trop.in> <87pmtarnrh.fsf@yoctocell.xyz> <87o88t3nbf.fsf@gmail.com> Date: Thu, 16 Sep 2021 13:01:09 +0300 Message-ID: <87wnngx2je.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::135; envelope-from=andrew@trop.in; helo=mail-lf1-x135.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=1631786616; 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=LSqsjCInIa2YuV5OpuopRjJDqPznjmuP6slpDcx0ds8=; b=PjRWec55NIag5X/3ytCU9magBeLwuCJYUySFJzI1FAkGa+Xn184rXUhOkzm4Lh9fHxJ3SY Qn9amWDM3ZGPtHvnSMzLHeHZM6IPv4JRC0+qt3CO5uM0wNIR/YGJAXueD1dezBofKcz4bf uBlq65c4DrsA2HCWd2M54DAY9B8Oa4uDnC1hJcCLDazWwxzZroDO06qXnx34ofUJe7Neja O0XgSx2LCfEfpc2qJXoSoTCP3VsGDk68N166aa7afvvneiG9XhtL6UH4wDqvdk7u3p0YaV yigmLxGHtuRxGmkHYpYo+oeLan80H0QmaLKcpBABg9HCDImU2350mu+d1k5iYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631786616; a=rsa-sha256; cv=none; b=HMazfriiE9bxtozd/uTy79Bmcg+kbloRbqlT8IkoZIFiSu5XokQ0JF8CrbikwCyJtRM6Ek xSpLhr68wc44mILgTevR4H3K+AVpx+Cp3293ia7DHV/NKT6ILBiw13pe9Dil3BbSQ+zEye EKjtDlIctTfIN4yfmJWpaO6icmOKNNjvdNH3nl7uhzmXwtu7pyuC2RhTom8caQy3/FA0cX JD3GN/FvDqbcrpjHylmD3NcrlUfoR+pnxzIC7b3j3BKtNXfOdhaZ6p81qcLaAyba7OGNHD xgBa7Mu+3fW5Il7GINl143KjsFxLx5PyzxqJkhFFlMyudqTn7efljqAseoUYcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=sep4984h; 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.20150623.gappssmtp.com header.s=20150623 header.b=sep4984h; 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: 2126514F49 X-Spam-Score: -4.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: nntYRmD8n1jP --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-09-15 09:50, Katherine Cox-Buday wrote: > Xinglu Chen writes: > >> On Wed, Sep 15 2021, Andrew Tropin wrote: > >>> Records even for the same services have slightly different fields and >>> because of macro nature can't be reused between Home and System >>> services. In more details I mentioned this problem here: >>> https://lists.sr.ht/~abcdw/rde-devel/%3C87y2cqifpx.fsf%40yoctocell.xyz%= 3E#%3C878s4l8kai.fsf@trop.in%3E >> >> Some services might be useful to have in both Guix System and Guix Home; >> for instance, Guix System currently has a service for configuring >> Syncthing, and I think it makes sense to also have one for Guix Home, >> this would mean that people not using Guix System (me :-)) could also >> have Guix manage Syncthing. With the current approach, we would have to >> copy and paste quite a bit of code, and if the Syncthing service for >> Guix System changes, then the one for Guix Home might have to change as >> well. > > I agree with this point. I have several Guix systems, and several > non-guix systems with Guix managing some services. In the past, I have > had to write my own Shepherd services for things already written as > system services. > Shouldn't be a problem, if home service will be a prefered option. More details on that in the reply to Xinglu, look for linger keyword.=20 > >>> The intersection of home and system services should be very low, so >>> there is not much benifit here as well. >> >> Quite the opposite, I think it would be great if home and system >> services could integrate more with each other. In NixOS, the NixOS >> modules and Home Manager modules feel like two very distinct things, and >> it=E2=80=99s not really easy to share things between them. > > I agree. > >>> ** Summary >>> Let's keep System and Home services separate for the sake of clarity, >>> reuse code via shared modules or just exports in (gnu services ...). > > [...] > >>> However, ~(gnu home services ...)~ also looks cool, but it would be a >>> little inconsistent with system services, which will have one level of >>> nestiness less: ~(gnu services)~. >>> >>> IMO, ~(gnu home services ...)~ would be a good choice if we use ~(gnu >>> system services)~ for system services. >> >> Yeah, having both (gnu system service) and (gnu home service) could make >> sense, but since we only have (gnu services), I don=E2=80=99t think it m= akes >> much sense. > > I haven't put in the energy to follow the rational behind the proposed > naming schemas, but I'd like to suggest this as well: =3D(gnu services > home)=3D. This namespace increases in specificity, and I think it would > easily follow that things in =3D(gnu services home)=3D might utilize thin= gs > in =3D(gnu services)=3D. Or I also like the idea of =3Dhome=3D and =3Dsys= tem=3D > being sibling namespaces. Actually a good idea, thank you, I will consider it. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmFDFeUACgkQIgjSCVjB 3rDMohAAglrAxD9TNrqoLuSgOdHlLl0H1+XJqb0glrdwYU4wEe0aSiYQU4S3Cpvn gviVnM7nfO3kO1p8IImf2pR3MzZSO7Fnvd8EJf0LZDahi2dFpmbNHxLHk7t3Vnb2 s+zFr6YlUJTbsp59fAAHl+c93VVd0MG1zDtIuHf2kQfy7n4eczTOaqnQZY/7P2hi t3eM1SqHRMWT7FiBVZSygTavnhP0p9GSvRWdOTMfYb7Rn/t3c5ed3n9LeWSlc82D h8PwWo9l6vTD5OClkUX/xdA9WUzXQfBdXxJpyHeM4RysgMxzZzjVahmvrVrku5Zv ayLcJSSNTx0u8Jt3YG0gW0+RsypP6ToXippu6qYbip7JjLUQxMG28iFH2mum6aaX JZllcQvwFEUlNmL2bIpBuvCVkRn4uQd4DXQu/bXdeCMsIE7gjSKtBOris13WTehu M+Ni0F4BAdcQUP95vN6bvuyNyrfR+5qY8zB1FyC1arDTZt14AVRC9JWYoRV2fuyB zb/3SDUFo+Q9E7DXxg9ejeq6iR01dEpe5+KUaXXGB57GYSZnbySib0BOUlte40Mh vF6GvMk5dPKc4gWVsmAqCNgY1rSBljD8gm9utLemGtetBvpd8EmQjBv7BfY210HV BcooQxq2BsciV3OEbdaCjegS1+NDakYfg9PTq2OtVSjaJkZHpSY= =4cd7 -----END PGP SIGNATURE----- --=-=-=--