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 uDimLGrGQWFiSwAAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 12:09:46 +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 QMlBKGrGQWH/TQAAB5/wlQ (envelope-from ) for ; Wed, 15 Sep 2021 10:09:46 +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 190202A6A2 for ; Wed, 15 Sep 2021 12:09:46 +0200 (CEST) Received: from localhost ([::1]:59292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQRrN-00021v-3q for larch@yhetil.org; Wed, 15 Sep 2021 06:09:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQRrB-00021m-PM for guix-devel@gnu.org; Wed, 15 Sep 2021 06:09:33 -0400 Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]:48982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQRr9-0001Sa-Gk for guix-devel@gnu.org; Wed, 15 Sep 2021 06:09:33 -0400 Received: from butterfly.local ([188.188.169.214]) by albert.telenet-ops.be with bizsmtp id uA9N2500F4dtNFQ06A9QDt; Wed, 15 Sep 2021 12:09:26 +0200 Message-ID: <30d6581e514faf4e67cc210dda2f0a734be0a346.camel@telenet.be> Subject: Re: On the naming of System and Home services modules. From: Maxime Devos To: Andrew Tropin , guix-devel@gnu.org Date: Wed, 15 Sep 2021 12:09:16 +0200 In-Reply-To: <87zgsei5ta.fsf@trop.in> References: <87zgsei5ta.fsf@trop.in> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-m8t+/SiQ1xau5+yA1eM0" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1631700566; bh=LX9RYOX1LKLAHSjN/apn02eCJcurQvZ/BfNIOaJFQ2k=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Vo2XNhfPJSlGj0Wz/F9Cu0V0fAYgDob+mC5j2GnE9M+0NlNkuH8ju6CNkp21NJOy3 ZnK/g0SUCoq733qSB7rO4xx4C2XQVcS+Keefu4n1Rdxw+XNYA+B/oCsckmB/z0icfw HG7Aae1cCwewLrgiJj2beEeobR7TK/rIhA7xIBgjn5519yi15LeknLgz11DjQSmdRa UOFwy8YGeM51/wzTKHGsJVrw2o+GRsaziQoXgtH3eCd+rQzCvnmMTbUNdmw4uBs54c tei5VG2LDqgx5hQA8sN79KXrz22Qb7nuOT7ZtE461cG0Zw6GG1RGYOwEckZFo+09OX QyK7lB6I5gtMg== Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-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: Xinglu Chen 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=1631700586; 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=LX9RYOX1LKLAHSjN/apn02eCJcurQvZ/BfNIOaJFQ2k=; b=LnaqZCR0DZ04VYDSxAgWnTQP/4n7Ylx5i61szPKnuwrOvjhm42O2YWMg1BAsy0DFeiBCNS m7QO+mWNDZm9VICzc9gkP6bNILlz+FBwtgsX0wM163N3PQf4Y2txEja7Tnwuu27Ihlinpj x0Kw+TTvYcZn3E3RDaGABxs+5sB1G9XBkxCn+n7vRkViOJc3M4DNqGMuBtxHsdw1y1mY/V 23n8dJ3PHQdD/joxY22O7b9WsiKA5OVmv1LuP8NrIcve048+4JexWZV07SN5eaTYz3NlID M0RSfvimVew46NWPcuumXXLAhEdto7WjdpdU66xQ15Xq9KcqOoBY+MRFL+2YkQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631700586; a=rsa-sha256; cv=none; b=QgzZetG1ekhtv28XI//dLcXnzGWGv9biYagTOdPKicDBk2A/N9nFcR+gxroyo44dIACrcK YUH9aOT9w8LhoiRWNHymiTzMOUW9u+ArNvw7iiH1r80rZ70D1pHkh/StAu/o5WEGQwb9sF GcLJJSYFuVMkrWTTxXWOiZld64neTd5Ks9+DnW7uft2tJEMxBUJn3xRsFfLwx7W5FEP57k ldxNtdpSrYJoUicjLooS3x01Rg4hxuX2Hc9xBTLa8nhIQb8nIWSKKS7yhAENzp/ZWqXNzi QOs05Jlos4kr1+hJK1K8G+qWqqqFUkFewH3drjlaJ4N7Xw1PjhKbHBNW6Y2zxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r21 header.b=Vo2XNhfP; dmarc=pass (policy=none) header.from=telenet.be; 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: -5.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r21 header.b=Vo2XNhfP; dmarc=pass (policy=none) header.from=telenet.be; 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: 190202A6A2 X-Spam-Score: -5.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: gFMQOyOPrkYc --=-m8t+/SiQ1xau5+yA1eM0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Andrew Tropin schreef op wo 15-09-2021 om 11:47 [+0300]: > *** Confusion > I already mentioned that I see a lot of confusion between System and > Shepherd services and I expect some confusion between home and system > services, it will be especially true if we place them in the same > namespace. >=20 > People will be trying to use home services inside operating systems, > #+begin_src scheme > (operating-system > (services > (list (service home-mcron-service-type ...)))) > #+end_src >=20 > and configuration record for system services inside home services. > #+begin_src scheme > (home-environment > ... (service home-mcron-service-type > (mcron-configuration ...))) > #+end_src What do you think of adding some validation code to 'service-type' and the "guix home" equivalent, e.g. a =E2=80=98validate=E2=80=99 field, wh= ich could be used like (define-module (...) #:autoload (gnu home??? mcron) (mcron-user-configuration?)) (define mcron-service-type (service-type (name 'mcron) ... (validate (lambda (config) (cond ((mcron-configuration? config) #t) ((home-mcron-configuration? config) ;; TODO: figure out a clear error message (validation-error (G_ "A mcron configuration for= the system was expected, but a configuration for the user was used"))) (#t #f)))))) and likewise for the "guix home" equivalent, such that if user configuratio= ns are used in the system configuration, an error message is printed, indicati= ng the issue? Maybe include the line and column number of the record as well. Greetiings, Maxime. --=-m8t+/SiQ1xau5+yA1eM0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUHGTBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mqjAP0S56lkM87wwaIaOjNG1Vqe0W87 5mguPIfOMJhAq/WmWwEA9uOoM3+wuBGWzbyU7a7hSTIw2yBEb/RSqCkDhZz6eAU= =Dwvg -----END PGP SIGNATURE----- --=-m8t+/SiQ1xau5+yA1eM0--