From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YN1oMfcb9GHadwAAgWs5BA (envelope-from ) for ; Fri, 28 Jan 2022 17:38:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wL67Lvcb9GF3IQAA9RJhRA (envelope-from ) for ; Fri, 28 Jan 2022 17:38: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 53EEF3C6A8 for ; Fri, 28 Jan 2022 17:38:15 +0100 (CET) Received: from localhost ([::1]:39446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDUGM-0000Ae-Fg for larch@yhetil.org; Fri, 28 Jan 2022 11:38:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDTUp-00039u-W7 for guix-devel@gnu.org; Fri, 28 Jan 2022 10:49:08 -0500 Received: from [2a00:1450:4864:20::232] (port=40467 helo=mail-lj1-x232.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDTUm-0000dY-MR for guix-devel@gnu.org; Fri, 28 Jan 2022 10:49:07 -0500 Received: by mail-lj1-x232.google.com with SMTP id q22so9615087ljh.7 for ; Fri, 28 Jan 2022 07:49:03 -0800 (PST) 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=wGgsj4/qmMudDKXJ4r1CdPlTkf2AiiT+z1hXMORgnqs=; b=7+0Cq1hq9weELkJOjhoWwzkGFUkDu12eXnH1VIL9H/cEtOhlauUYBXf0JaNsfiBf7I A2IQWgazoLSSkZxR6HPk50o7qDRh9IgNgl80VS6iXNEVkuHX8zoTwIaaF04bRazE3nB/ wYFNB4+DbBKMgdBNC50yTMnCBHOKKct682ywW9N9vPkLIcFAcevRTpxg7CXKxE1MgPLC wR/3LE10rFaIocSgSSiX0+JotxNbnuBkOdGKqnN52QDnV/5hveReyP9QNxummSEpFzKx ODWknjuTcd8WiK3YkRpzUYGM+2IukBqdXAsHZe4SKDOhUVn+flgtWTuy+9GUzMRxeouG YgWw== 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=wGgsj4/qmMudDKXJ4r1CdPlTkf2AiiT+z1hXMORgnqs=; b=iS2fQ0yRQYzWhXhqLsnuPZB/Nt0wQhVni9ncsg4zd3v02Aoydi68+n/RUG7V15ENc4 Zr96QL4eh57LrCymq+tMTJYcCGVUZTOfusOWRyknguU2arXMfhLzK59gtLfE9DhBLu27 f9HCJpp1LUJNnADg2yWVItbILCg+dazzi1RdL8x1y5XmY4ut+Kf9uk+j5z4nzf8WLAnq 1tB4koYO5bmqrSRHjI6wCPYi7sG8WHF/K90+4oYXwOMKeTNnrvYhnYKur4ZKnX2vQ6MD M/iZ+Br8/tI/PON6ju7+NGpqFVCDzuwole84gIp4vxRRNklKRW7ZrBtkd6W3KlLPFkg/ R0TA== X-Gm-Message-State: AOAM533qOXqGHzCfBTsSdJTBl9aJwOlyHpqn/SWuWhDN7nC1tskssYo4 LQK+EoLWsKGfQNWb9FlmIADPVw== X-Google-Smtp-Source: ABdhPJxM0PWUz18BqkJWYL7dt0cOeqZNbXQKInn/pLdC4c5Z+AUbXCkZaxdcgt6DwzKzrooo+ga2Bw== X-Received: by 2002:a2e:9497:: with SMTP id c23mr846012ljh.483.1643384942361; Fri, 28 Jan 2022 07:49:02 -0800 (PST) Received: from localhost (109-252-135-33.dynamic.spd-mgts.ru. [109.252.135.33]) by smtp.gmail.com with ESMTPSA id q6sm1242652ljj.31.2022.01.28.07.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 07:49:01 -0800 (PST) From: Andrew Tropin To: Maxim Cournoyer Subject: Re: Return back original implementation for text-config serialization In-Reply-To: <87fsp922ia.fsf@gmail.com> References: <878rvp1deg.fsf@trop.in> <87mtjtglxd.fsf@gnu.org> <87o846y24v.fsf@trop.in> <405630188ac22fd2a1f1d0e0555ce061584744a3.camel@telenet.be> <87h79qx5db.fsf@trop.in> <87fsp922ia.fsf@gmail.com> Date: Fri, 28 Jan 2022 18:48:58 +0300 Message-ID: <87zgnf274l.fsf@trop.in> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::232 (failed) Received-SPF: none client-ip=2a00:1450:4864:20::232; envelope-from=andrew@trop.in; helo=mail-lj1-x232.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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, Xinglu Chen , guix-maintainers@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643387895; 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=wGgsj4/qmMudDKXJ4r1CdPlTkf2AiiT+z1hXMORgnqs=; b=JSuS0ZsQOkTFsLlf7fXX34yTnB/uI8xct3MmviuqqjtG64QPvXjH5quoOQjxJBh1xy94HE wH+lFT/BOZR3dtUdO1aIqvU8XWw7Sqw/gQwxcxtyhAepn2VrgGeMRCqRQMMxA2/VeJHkPS klIylntfkYZvgPu3qAtvTIzxodT8VmT2aBa1JPd48eFRaLYjG9JscHZnfrzlGjS5ZpV413 M0hUKqxpnGR99wpWUE/mCQFjPtAkJzGQAg/7YVTJRL+MZUL/A3bQOi/RpNOAui6vXoZT5a E1HLNGFJolah9LokmL0oI02Yx9NnPxZq/lpe2lpT/NWpayZHPSgWC97l/5NXAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643387895; a=rsa-sha256; cv=none; b=RmnuSdOoINTKHfFHuQEIhAWHvASHsRY1m64ugKIeLbLGtiYor0CT7UMpiOScyv5pWsJ/8A keHkw7dP7GTfEvvUjDsXUtb0c4Ogha9GlJ5ZikBIDur6KNnsXNudWjhRlTY5OM5ydXeQfb ommiaIPWvQLv8gEsVaJKHUVt1I8AScGTMbnylSWnU954NW1P+7AZIxvg0Pjg3QD5iLLh6+ cQihalqQnANexEL3r2RaKNBL6g5NuSsZ9yu7mTM4tu8siLJCZoTGtQ8Wz73vAsS6K3b/Qv GxmySbRRKa8EpERcnWKSSDFab/VY4uMr1tIxfG8ho5wXNK4UR106Y00rx3QLMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=7+0Cq1hq; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=trop-in.20210112.gappssmtp.com header.s=20210112 header.b=7+0Cq1hq; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 53EEF3C6A8 X-Spam-Score: -3.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: T4njYdze9kGF --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2022-01-27 00:04, Maxim Cournoyer wrote: > Hi Andrew, > > Andrew Tropin writes: > > [...] > >> Ludovic mentioned someday that nginx-configuration is problematic, but I >> highlighted the generic problems, which are applicable for many other >> guix service configurations. >> >> I discussed some other pros and cons of record-based configurations in >> https://issues.guix.gnu.org/52698 >> >> and I see the benifits of the records, but I'm not sure if they >> outweight the weaknesses. >> >> It maybe sound unrelated to this thread, but it's actually very ontopic, >> because it lead to the design and implementation of home services >> configuration approach in general and slurp-file-gexp and text-config in >> particular. > > Pardon my ignorance about Guix Home, but couldn't we have configuration > as records by default, and the lower level, config stitching primitives > still available to hand craft strings that could be used as the value of > an 'extra-config' field, for example? extra-config/extra-content/file doesn't play well with the rest of configuration record. See the proposed patch, which introduces home service for redshift: https://issues.guix.gnu.org/53466 I briefly mentioned it, but can elaborate if necessary. To be clear the top-level SOMETHING-configuration still being the record, fields, which introduces some complex changes like shepherd-service? or something-else-quite-big still fields of this record, but what get serialized to config file will be mostly a plain datastructure in the approach I propose and recommend. > It seems to me the use of records for configurations in Guix Home would > be the natural choice, as Guix System users are already familiar with > them and it leans to better discoverability/documentation. The point about Guix System users is valid, however I don't see it as a big paradigm shift or very different approach. I made a few points about discoverability/documentation in issue about redshift. =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJDBAEBCgAtFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmH0EGoPHGFuZHJld0B0 cm9wLmluAAoJECII0glYwd6wLIMP/RFxIn1ogoKeZ5I5wkbqL/4T7BNFjqHZyx6O 84ZAbL1XvbOLHqt2IoA3a40Qg60x4uHLPhTYVmMmhADIE0mcoioHVGnJbnVZjbLg mWHG115iLOssdlY80PSVuIiidyUCVv54jL2huK6KDF4wmy1J11E/5d4DAtz3kUom NOcqPuGrTp2R9Zn1Y72hzjDrmzXabYr4vUD05k9z03bZQOIM/Wfl1TIaCHukw17V UsvvGNPsDj1eTpimgth6TX8sfVn0CfIWjefac6OhR08EOZu4y6CBjPBnsSMibxjB Lfble8FtZ6mTOYwHLudH2uHb5NHropG1jf9v8WD5anEe+Q5ePXH/gRWiidcdTBCt hknnCNwVWihlsgziqubrL4Hki9x22z5ilE4SXRuVAUfDa2C2/nxnxQym8rSFHCW9 jgLsvYUxVV3FyD1qc7QMDdxrTvt8QK59mS3pftFLE0jJxpN1wtOV39zBtfjUSw1j 0eB9fPDcXiZShDYuqXaf7ZU6qd+7a0Tx4kRVVweX/jIPFnO5ivpSNOPXNRhnOshm QPwp2lz+kvb0CmCgriHiHVhm5URR5AYe+FH/ObTfp+oqU04BZRYaukfchPe1MzR/ LzfD45iAbuaFe8psCNU7p4ibU3WnkFw4AV+54y/rElDSTMlE7sfj25w0CD1CxlYr 9UlafQeD =nZQJ -----END PGP SIGNATURE----- --=-=-=--