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 MF1/KoJ/ZGS0HQEASxT56A (envelope-from ) for ; Wed, 17 May 2023 09:17:22 +0200 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 iCBkKoJ/ZGTJRwEA9RJhRA (envelope-from ) for ; Wed, 17 May 2023 09:17:22 +0200 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 5C7311355A for ; Wed, 17 May 2023 09:17:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzBOr-0000yC-Kd; Wed, 17 May 2023 03:16:41 -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 1pzBOZ-0000rx-6S for guix-devel@gnu.org; Wed, 17 May 2023 03:16:32 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzBOS-0000Uk-GA; Wed, 17 May 2023 03:16:22 -0400 Received: (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPSA id BFC9AC000E; Wed, 17 May 2023 07:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bioneland.org; s=gm1; t=1684307767; h=from:from: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; bh=qKFd5Lruat8fqvBSUuho4jkdqRdecExDkwUnpOUwv9I=; b=XEiUAiZbS3WWN+qo7SaXtBb2PLzCFsrrgR0Hx/hEyEwl0G1wbx4E1KSyIC6AlRO2L7t6bM ykSfFV8olXq9IXAhDkp0CWCfJa8Fwl2Jai6RAzWiYv+9Ya8i+LevK/fkqkqgNJAqjKH/9K Vpd6QbDTmKA2gPFSpLUue2F8XJdPR3KmWWWc05+EOKppOXXxtnrQ2fm7+vHfAktGTNx38w t18KsMDr9RSCDeMtFkTh95HV/n9IqyX4YZX0aRlC8WePFlO9CnlImfzw0YRNYpPjazfoKi KLGqtmkRwl8XGuMP9fr+sZ74O6MQLBI6QBBLlZiH1QP2VkT4jfaECCuPXK2rBA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <167976320326.6475.15093558555393216956@localhost> <168059431883.4793.18067611286272607697@localhost> <87pm87wm27.fsf@gnu.org> <168147383584.28031.934590679059064569@localhost> <87jzyaeih5.fsf@gnu.org> <168200453237.12030.10686882904904843012@localhost> <87pm7hxi30.fsf@gnu.org> Subject: Re: Contributing Guix Home services From: Tanguy LE CARROUR Cc: guix-devel@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= In-Reply-To: <87pm7hxi30.fsf@gnu.org> Date: Wed, 17 May 2023 09:16:06 +0200 Message-ID: <168430776698.8114.12478286933255777435@localhost> User-Agent: alot/0.10 Received-SPF: pass client-ip=2001:4b98:dc4:8::226; envelope-from=tanguy@bioneland.org; helo=relay6-d.mail.gandi.net 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684307842; a=rsa-sha256; cv=none; b=RWzv8N1KuOccZHKxBhYQySLZVfJ0LHACEgnOmaSbQja6ZlzYYw2D8oz0GPhpOxLmbvCHUe f5vmHYISBmNLYasdX8pmNx3ruGP0iR2bcewcrhdHi9+BNIheIowf9NuNOMMdy/KBrSh8eC GGD3iET0M4qo6WKWE/yikL/yNDVpQ8SUWeaAvD4SzPrXRGC7eksKRBi0V/1QPK/xG1RWmV 4/+osn2AoNOsPH0VNi7cNfhxAJKHU5lRrQNOC13pxS81KcaMMgGTg6kJbm/fG5R4w3Rv4X Q+e9Ygy0/lNm9p2wtpk1Xq5nzNgHnIUouOQrSA+jx/n10cqOcW3hl8K7j5CgzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=gm1 header.b=XEiUAiZb; dmarc=pass (policy=none) header.from=bioneland.org; 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=1684307842; 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=qKFd5Lruat8fqvBSUuho4jkdqRdecExDkwUnpOUwv9I=; b=L7bjWyKMPitFcRJq06j5D2s9SP1z9WFVH4IhmmYh1RxtlPSwXYfDDibpsXQgtwhcwpJHRR /rjkY5Hl8+6GK4DQGwToNay30X2bbBMSExKwLb2BUUZcw2IflLnuaKE7akxDNnfQVHYysW jubzKOkqFg3X/U0y14FMrgebC8ED4hwmh2VxDVDbSutOuf80bMVF7EZVhoCr+BlocWK0oF Dft2fn38bwgQOdfn+x80Hxj36CvPO++QMH1DB7OfTF+tsIUZgT54dHiUC2D3Pgv6lCR9sH UbwB4CqcTQ8ZvPkKBOnp1mxiNV+MBGXQS566YBdOCx9xNbYYCPrd9xjzMPVOwg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=gm1 header.b=XEiUAiZb; dmarc=pass (policy=none) header.from=bioneland.org; 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: -2.29 X-Spam-Score: -2.29 X-Migadu-Queue-Id: 5C7311355A X-TUID: 5uCmEcSgbsv/ Hi Ludo=E2=80=99, Sorry, busy week! =F0=9F=98=85 =E2=80=A6 euh=E2=80=A6 busy 2 weeks! =F0=9F= =98=B1 Quoting Ludovic Court=C3=A8s (2023-05-03 22:42:27) > Tanguy LE CARROUR skribis: >=20 > > Quoting Ludovic Court=C3=A8s (2023-04-17 15:39:02) > >> Tanguy LE CARROUR skribis: > >> > It's been quite a journey on my side! Ups. Downs. Mostly downs, thou= gh! =F0=9F=98=85 > >> > Thanks to Simon's unconditional technical and moral support, a **LOT= ** > >> > has changed since I sent this message. Hopefully for the better! =F0= =9F=A4=9E > >>=20 > >> Heh. :-) While it=E2=80=99s fresh on your mind, it would be nice to = list the > >> problems you ran into on your journey and see what we can do about it. > > > > Mostly figuring out how to test it! > > > > On my machine at home, `guix home reconfigure` can take minutes. >=20 > Did you test with =E2=80=98guix home container=E2=80=99 first? That=E2= =80=99s what I do and I > added this command precisely so one can test without any risk of > breaking things. >=20 > It=E2=80=99s still too slow though, that=E2=80=99s right. Yes, when I use my actual home config, it also takes minutes to build the container, but, if I use a fake home config, limited to the service I want to test, it's way faster! Still slower than the following=E2=80=A6 Append this test code at the end of the service file: ```scheme (define configuration (home-service-configuration ; [=E2=80=A6] ) (mixed-text-file "test" (serialize-configuration configuration home-service= -configuration-fields)) ``` Then, from the command line: ```console $ cat (guix build -f path/to/home/service.scm) # =E2=80=A6 the content of the generated file ``` > > I can only test file generation, though. >=20 > The msmtp service does nothing but file generation though, right? >=20 > > Then I painfully discovered that replacing in a string is not as easy as > > it sounds, or, more precisely, that "python replace in string" yields > > better results than "scheme replace in string" in DuckDuckGo! >=20 > True! Perhaps something to add to the Cookbook=E2=80=99s Scheme intro. >=20 > (Fun fact: I=E2=80=99ve never used that (ice-9 string-fun) module that ke= eps > popping up in new code. :-)) Whaaaat?! =F0=9F=A4=AF How one would you do without it? =F0=9F=98=85 --=20 Tanguy