From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QA6qNJIReWbDYwEA62LTzQ:P1 (envelope-from ) for ; Mon, 24 Jun 2024 06:26:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QA6qNJIReWbDYwEA62LTzQ (envelope-from ) for ; Mon, 24 Jun 2024 08:26:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=RjCStUwa; 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"; dmarc=pass (policy=none) header.from=lendvai.name ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719210358; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zPeT0hzLokgv+gcxX8HzW9lYCIMJGU18FEhRyas9zlU=; b=rlXRTxBFQ0PPlGnDAzyeYUuyIdP4uS+vyV5kCZIQjQFlKZ8Hvc/1yLd9nLPGZn1MDgBUHv CDl0yAgTIbft5sscTxqXMhVKudww4hvN2q/9H89ZtwaQ8LWGmwmujvAYtP6g6V/5AFS9K4 TUZmkxM7SEE9nIACPKLCUs47Vmm0uDUv+qplpEwa4zsRFmDtCby3I/q7Nl/NNXgcfK5qJ+ 9hslzGpK/L7OaFWXhja0O6sTMy21OC0+7mqrkvhS8pqZf3Zwe4bhFWMHrB+f0JxOhySBlV YKgT4YepgHC+8unwByNuAcg2QiUJpN8dle9MlU6YjLJAI/4O4hkDA2E7hSqtcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=RjCStUwa; 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"; dmarc=pass (policy=none) header.from=lendvai.name ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719210358; a=rsa-sha256; cv=none; b=FEThUx4UE4TYRTfrxzGLxnLxTOUlixpPcYs3C9QqEu5u4AaaZjAYj6Vpz5hI6KC5j+vhs+ n8DERUtLBrIcl3taqeg/2Lyi2YO1QT65zHwKU4tu4yniqkERPQ+8V1Dv4niScFiT3EngNo rI8cFQhRyYhwNeRRK5C00HHBy3240yRMS76//+R4jLgqKlAYUKS2IwIJgi+kSWXI7Tqw+g baLgJ6RIGMJYlSI6C+FW8rjG02krF6VdBBza0Sccu3sedNWglGigCR+V4xFYO/mIxqa0v2 mYmiPnA/sqYofhjhXispyxFGFh95Y9sr4rADKkv0sKasfnLp094BU5+NWL65Hw== 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 74A3A67585 for ; Mon, 24 Jun 2024 08:25:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLd8t-0007q7-1U; Mon, 24 Jun 2024 02:25:31 -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 1sLd8n-0007pr-Gj for guix-devel@gnu.org; Mon, 24 Jun 2024 02:25:27 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLd8a-0004lp-5A for guix-devel@gnu.org; Mon, 24 Jun 2024 02:25:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1719210307; x=1719469507; bh=zPeT0hzLokgv+gcxX8HzW9lYCIMJGU18FEhRyas9zlU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=RjCStUwaM6Xnr0H7YyI/NRuwvhWZ4ju8pzke67g9VsHSdPQdYH/kL76qOJBkWeRGs MthDEjqpveosyGcLFJvc/9SM1hlMHokLfCv96340gCv4K4uwxEo7KbxBWKv55zbEXi dvZj76AEF9pmiIh6TLxbf2UC6Tn7Wkl2XoEvkIydix6lU3TwJaGxjZMfh5mPA98d06 vPIgkEzczfG4Bwt5OocRc5wUOrXVDtcRFoLJR2htIQDQsA+4YH+P1oQOBN9Bpn64Ar b2yhoiGUhRBFOPL9Jmu1nAF57BC1f6tm6jiq/8EpQqSqsXoMsiGRUuC/JGjqicXCcz mD95HF2bMEvag== Date: Mon, 24 Jun 2024 06:25:03 +0000 To: Tomas Volf <~@wolfsden.cz> From: Attila Lendvai Cc: guix-devel@gnu.org Subject: Re: Proposal for removing some serialization limitations of define-configuration Message-ID: In-Reply-To: References: Feedback-ID: 28384833:user:proton X-Pm-Message-ID: d0e6c64c54740519e5293883b0765876947ca9a1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=attila@lendvai.name; helo=mail-4323.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 74A3A67585 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.49 X-Spam-Score: -7.49 X-TUID: xTVU42icbAl3 > authority letsencrypt { > api url "https://acme-v02.api.letsencrypt.org/directory" > account key "/some/path.pem" rsa > contact "mailto:who@knows" > } i have no time to verify this right now, but i think you should be able to = write only the header and the wrapper in your custom serializer, and then i= terate through the remaining fields of the config record, i.e. sans the `na= me` field. you can inspect the current serializer for how to iterate through the field= s, or better yet, how to call it recursively with the remaining fields. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CGovernment does not grow by seizing our freedoms, but by assuming = our responsibilities.=E2=80=9D =09=E2=80=94 Michael Cloud