From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IDx6ASyfHGTI2QAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 19:49:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MCeEASyfHGTFwQAA9RJhRA (envelope-from ) for ; Thu, 23 Mar 2023 19:49:16 +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 CFAB1C070 for ; Thu, 23 Mar 2023 19:49:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfPzM-0003ag-E8; Thu, 23 Mar 2023 14:48:40 -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 1pfPzK-0003aO-H9 for guix-devel@gnu.org; Thu, 23 Mar 2023 14:48:38 -0400 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfPzI-0004gs-TI for guix-devel@gnu.org; Thu, 23 Mar 2023 14:48:38 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id D9DE7184D6B; Thu, 23 Mar 2023 18:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1679597313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Zads+2o09OhuggUeHb4k+PniUATkChy31vSvv/iAe4g=; b=dR/wJoZKAUcgGZfzJPPqjzHSVW+Ihp8QXrVvg5Qy4KckYilAuvuj3xIQF46xzWXyBeR/Dp F1j3A9bMddpc20AyKdkU7d51gTACvGzjWyZHIXa7T+EtaZSlLCbvaWV3qQhYLzb6Gij9BW RlfLAuy445mrbFRU4O0Rwcco6ERDiAruePSoJ0K/uje1yy1TGg1fLRPNUeu7GCHvSlQ5gg wJLIRyKZ/76w3Q22bi4btxO8426yq4qvOvujawywFb3anbaDC6YHyjn/G6v3fLBsaglYDU q+7av4cYN8gVmCyrxNVCiJCBKAPl+4Tpe9DR1PoPJ1SFj6VdlR1W9pkLF1KYMg== From: Josselin Poiret To: Edouard Klein , guix-devel@gnu.org Subject: Re: A friendlier API for operating-system declarations In-Reply-To: <87wn377rst.fsf@rdklein.fr> References: <87wn377rst.fsf@rdklein.fr> Date: Thu, 23 Mar 2023 19:48:06 +0100 Message-ID: <87iler1ezd.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: / Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679597355; a=rsa-sha256; cv=none; b=dNrf83inE7FY+LC1NF7GD6QDuKuvpUCvSVv4NddfXy2MreymAR41KQL3BAMyiA1BlAAPr7 PoFvLgKWj21q13y3jWtvxBiChRA4sDAtdQosDnFM/I1J50y5oKr7rTOlTaxEUYz/hEYjH8 CMA7EPfj+LWd+1OPuZVop0ifQGknGqKkyBDWqVyiETkwrKP+l7OBnAYfwZAEf2NJL2EozV tkNiUvG42WdyvAvcjo2G9YN7qhyJHVLgwv9sq/jg0LuOflq78fq9x8r2Hx18QRJR/fb7LK iNm/zYIiIe/venomm4aGkDPoGArMyXE9Yo2kfEyfmR1FGsH52t6NflxV4S7Y8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b="dR/wJoZK"; dmarc=pass (policy=reject) header.from=jpoiret.xyz; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679597355; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Zads+2o09OhuggUeHb4k+PniUATkChy31vSvv/iAe4g=; b=n7owTT4IkoBT5887J1bN2Gh7Hxz9Ftaq5IOi6ydfsryqRgRtKT2CosErcSx7BY1GP5XQeq 4NkT/Sc1msNqHIPgWzkb86J5GrAVpCTsVnMg4aZHpPc/KyYrcdUlx7fZAaj6JCFV3XAphN 4plmimVeBVMDlHtBYS2Fhk1blZY/o+RMJztp4WDQlCE13mtuD0rpkHXnl/jqJk4G000QAa 0XaPIFJY+jLL2bZpb23MT/tufzzX2XqpgvOWONiu4G0hTemNwjaomjcRXBkiuBMd6WPmdJ w5ppV0YZfbyq86lKL77zgFvtEy74zr767VM24Xcm/vnvp4TPMoFJjToBe2Vg7w== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b="dR/wJoZK"; dmarc=pass (policy=reject) header.from=jpoiret.xyz; 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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -5.41 X-Spam-Score: -5.41 X-Migadu-Queue-Id: CFAB1C070 X-TUID: A0bwQNpPERXF --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Edouard, Edouard Klein writes: > #+begin_src scheme > (-> > (minimal-ovh "ssh-rsa AAASomethingSomething=3D=3D root@minimal-ovh") > (http-static-content "sub2.example.com" #:to-dir "/srv/sub2") > (http-static-content "sub1.example.com" #:to-dir "/srv/sub1/") > (add-services my-db)) > #+end_src > > The code of the function is on my channel: > https://gitlab.com/edouardklein/guix/-/blob/beaverlabs/beaver/system.scm > > After a few months of experience, and positive feedback from my clients, > my question to you guys is: would you be interested in mainlining this, > or should I keep my development efforts separate in my channel ? I am quite in favor of using operating-system transformations rather than inheritance, because they're composable! This could be leveraged to get a nice CLI API as well. > I do think this API is easier than manipulating services, and although > extendable services are awesome and a very nifty piece of engineering, > they require quite a good knowledge of scheme and take a while to be > used to, while this new API, while way less powerful, lowers the barrier > to entry for newcomers. By this, do you mean that there's no way with your syntax to modify a given service? Is there a reason for this? It does seem to me that it could probably be done. > They are an easy way to maintain a declarative whole operating system > configuration, with a syntax similar enough to docker and ansible that > sysadmins familiar with it can quickly get up and running, thus exposing > more people to Guix. > > What do you think ? You've got me interested :) especially since you already have customer feedback! Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmQcnuYQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcaii2AC/994oNVPLi7HkfYHBPFbRxj/ulE2FEszaHN rU9TJCvg0dqCGbzYY/KgWAl6aJKPJt+griydZiNn/ST7EBZgJtkzG+jTG/X3ubMs 41K3jFxhJjB3Lz64WQIg+ZcyxhOorHYPcfnFitF1S48o82cP0AYdmKuYqthxHd7O j9Tcq2LA/JyDNF1KxvEFjMcH4M36MK9OrmDl/Gw6gagp/9dHqOg5tnu6qKYnPdX7 zCCscvjOxXgrEvPvex9nYT7AprzQg6wIFYYDAd1K7yQq6pHXFQA39ABWeUyg9tOp 4GPB1UphcKyI4/oLU+vSoMdd37VBYXX5H6iHg/PnZFB/JvaFu9pOFmOO1tisU80n xFYDJixaZxH4XRxL0/vTHuW2NwU5p8w361+BhkHvBzZG7O2CsRjQxMLXZ3ZUNvpr XDfsKmAKVsqbHBmMJ4lGHjcrF9k4FIrv+1ceIBqAhgcm5L4Yr/kZ4jL4ZMBlAEn2 DguvWCmpTdlrEfP4Vb7vfqT3yxmmK34= =WiNC -----END PGP SIGNATURE----- --=-=-=--