From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sJo7JEgJXGVnBgAAG6o9tA:P1 (envelope-from ) for ; Tue, 21 Nov 2023 02:35:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sJo7JEgJXGVnBgAAG6o9tA (envelope-from ) for ; Tue, 21 Nov 2023 02:35:04 +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 1F31C5FE2E for ; Tue, 21 Nov 2023 02:35:04 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=yR5uwcdJ; dkim=pass header.d=wolfsden.cz header.s=mail header.b=HWShQzwF; 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=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700530504; 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=htgguqPR/YrmzwwDbG8jKUFd6ncNneNT5JqobJmyDcc=; b=WNMZb0s8YTOaUDn0xk3LXfckvUsNGZBWj+F+6P+1hwlU5b2tmwKmRtYdYguhQtH1DeE+QB eVvzWxDxDfY+HzRGtXQxq5r3WbuXsNYwuUMI46VCN7PtQFhgoG+VitQwDuTQYpJmmBOVEQ 9PfFKHadUfTj7t63iMTlOnTSJ+b2ZfgCWNEPX6artq3juPCuzUc4Ngj8xeAajpGu9nMFI+ v8GOV8h2Mw1KQF4fb+wNAxhoKpWenIqocCZvU94+EknPSBfH6ruwJta94xLGQFfa21DYBi cF2pBQNfnUXNS+Lt+Fs+xq+IIV683b9l6Lr2BZi/mwsR7Ip4g5qcSOfD66uo1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=yR5uwcdJ; dkim=pass header.d=wolfsden.cz header.s=mail header.b=HWShQzwF; 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=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700530504; a=rsa-sha256; cv=none; b=cJEwwIBbhs/hMPc3QbWJPypZsjXoPiquutbxVRbAT3u552kMHB1pVa6QUtdjvUpXhwoNMK YcRLUGIxU+nowMZgBqzFdHNmFQOhNNWTAsmdAVxMzw2dEoCbdob79ES8kHPp1KeJto4tiz HJFAuqQ+gYKhrQWc/6RRwH0BfvIMVajHcOB9vkGAeQI19JPPepoYWLuxT3SOFr0t/xFZsN 4hq8NZgZQkJZj2GbYp+XthkfV4L3uaqcc+vo7WbEI/bJl92AQ2Av5t7zCDXH5JmcSaNFr5 KX6AHhItFtEGpWxsmIYfd0eeiFWwdxIeDzYXP9fHj9yNDhaMuffqLB35ncoucQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5FeL-0006rl-RR; Mon, 20 Nov 2023 20:34:02 -0500 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 1r5FeJ-0006n3-Gk for guix-devel@gnu.org; Mon, 20 Nov 2023 20:33:59 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5FeH-0004bE-18; Mon, 20 Nov 2023 20:33:59 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 3AA0225B125; Tue, 21 Nov 2023 01:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1700530430; bh=XTBPYKVV6Tlyhk7/IDiZsCgONEM6lm0LcYQ00QiwFDY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=yR5uwcdJUdi1u9TceKRkp1I/MOq2yjoQNS7B/9dtcLiwozFoBsD/O1ur2LEPlP+IZ gBOBkRXn1z50cQEmZMjREPrlbyadu0cA+z8EW8Y4TzMxB+D5Ihn2bxwyHzF2COMRbF JjbPiHwIwhsyDFMA2DofMgNt68TfnzRImlcjahPBrO8mgx+BFTMKEZqXg2BKCQRkR+ 7PFLF9dzuQvZTCtyeRchB4k8sT//lxXzqLDZODBNvB2tAHD9b/RoYMsqfO+WAP3/cT Vdo35uq31oo3qb1sR5LMYDyyVbCmRABuCpFS1mDaSBtWSTwLly3V7/ZnTP+RWCo1Iy nM7ohAWrMuw5Ji6rS0d0TPf/oSn8gHxyHhdu+2r8YyaigUSLxdR9oiawLaD23f2vUa j7hQqzu7x8GdRmxuMS9e4w5CS9qn/GVexpwp8u4jvXY+o5n0CQ4B8wde+hGZ7Ce4pz x3+r6XRUziXS55zXCORJnu9Ro7sgeJEUunKKJ5xqfBeCt/j4I1oDKE0WHyI0XcS5DP ifhRmDeyFHO6ICyyMR+en0jBiC31bo7HaniLlMK3Bj+xMvyrak3sDja3zUtcQmqNcK E5WDKql59Wnq4eMQi8ozZVGKlFpoS2yVffrq2/EZ6ChjdzFSOW1WzKBaE0gKhIMo8C TtT/PjdGbfiejrDSa9E8na5o= Received: from localhost (unknown [193.32.127.154]) by wolfsden.cz (Postfix) with ESMTPSA id 6FA9425AB9C; Tue, 21 Nov 2023 01:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1700530428; bh=XTBPYKVV6Tlyhk7/IDiZsCgONEM6lm0LcYQ00QiwFDY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=HWShQzwFPg3LBx63zPhUUegl+nHGKKoBulr62Sn2e7lmbJbhbqAiC1f5ih3Cd4ic9 jdAuzkm+jUeEZy/DznfFPMZ69vgCQvhA55mMAIJwrGydQ/w6842JZmNLSfHImOOZLA eugb+KwXagkUc9HXaQeNnchQFRWqXu0qzcN7yYpxLegCoSbmBlMsu7H5Kz1zjry26c Vf+KYLnYZMev5j8a/ojBRBF/WjYxa46KWYJ6rZlOfYCpBnGjUxdCm1Mxvp7Uvb5Awc auVbTP7qXvHboNAebeOnJEuPlD2OvlDOJCqonWZKWa2M7Ai4XdCDhHWgQjg9/besIN FNMyzf+5sd+JsWmq+4UmZ0YMC0HbBZheETvpXy8nNvUJ7zKQfpjutYewvao2IbZhPm s7H8aiLJWG0M4jgcYto0G0tlvu75jH0q8lbiaWMI6AO27fOwjX5ubEgvWwkQTEp2nt DJxNYNhWWkWrS10tiovQbShzdgAvvv40mFZApJ1QNUlCk4SquAHB57pvm0p3RlPm02 eGoR66LC/0HmuGFymFiF4yJcZbzfjfwoVGfQ4IH4bX5Nqd1OafTFAXdWdHrbcHi0PU NnPlg43UC8CfXXh2hm5tWt5u/rpqBHUk1ncf9n8LOaL/GJdLJLirr7gjMB5DdTjfTW w/4kdnGDdEwL03SoMzMiG5QU= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 3a22e229; Tue, 21 Nov 2023 01:33:45 +0000 (UTC) Date: Tue, 21 Nov 2023 02:33:45 +0100 From: Tomas Volf <~@wolfsden.cz> To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: Maxim Cournoyer , Felix Lechner , Ricardo Wurmus , guix-devel@gnu.org Subject: Re: Better support remote deployment Message-ID: Mail-Followup-To: Ludovic =?iso-8859-1?Q?Court=E8s?= , Maxim Cournoyer , Felix Lechner , Ricardo Wurmus , guix-devel@gnu.org References: <87sf5pu06o.fsf@elephly.net> <87v8adidqp.fsf@gmail.com> <87zfzp2vph.fsf@elephly.net> <87fs1hhu1v.fsf@gmail.com> <874jhx9de3.fsf@lease-up.com> <87fs1ggvlt.fsf@gmail.com> <87y1exu3hn.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qyUpVUi3cmrPuh3/" Content-Disposition: inline In-Reply-To: <87y1exu3hn.fsf@gnu.org> Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 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: , 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-Spam-Score: -5.91 X-Spam-Score: -5.91 X-Migadu-Queue-Id: 1F31C5FE2E X-Migadu-Scanner: mx10.migadu.com X-TUID: hmPU+HGLGr4i --qyUpVUi3cmrPuh3/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-11-16 16:23:00 +0100, Ludovic Court=C3=A8s wrote: > Hi, >=20 > Maxim Cournoyer skribis: >=20 > > Felix Lechner writes: >=20 > [...] >=20 > >> How about a 'remote-user-profile'? > > > > 'guix package' is already the command we use to create profiles; maybe > > it could accept a '--remote' argument to operate on a remote machine? > > Or is this not what 'GUIX_DAEMON_SOCKET=3Dssh://your-target guix package > > -m manifest.scm' can already accomplish? :-) >=20 > Doing that confuses =E2=80=98guix package=E2=80=99 because it=E2=80=99d t= ry to perform the > effectful part (switching symlinks) locally, even though everything was > built on another machine. (It=E2=80=99s also slow due to RPC round trips= , as > Efraim wrote.) >=20 > But yeah, I think we could do something along these lines by isolating > the effectful bits and evaluating them remotely when needed, like we did > to achieve code sharing between =E2=80=98guix deploy=E2=80=99 and =E2=80= =98guix system > reconfigure=E2=80=99. >=20 > That said, I wonder if this would really be more convenient than SSH=E2= =80=99ing > into the target machine and running the commands right there. Perhaps > I=E2=80=99m missing something about the use case? I was following the debate, but maybe I have missed something, so I will put forward my use case as well. I have two properties I would like to have fr= om a "remote deploy" mechanism, and they are not satisfied by SSH-ing to the mac= hine and running the commands there. 1. No need for `guix pull'. I run (a little) custom Guix, so running `guix pull' is somewhat expensive. I do not want to do it just to deploy somethi= ng (be it a system, or home, or profile). 2. No need to copy over the definitions. My configurations are part of a g= it repository, which I would like to keep local to just my development machine= =2E So rsync-ing it over to the remote machine in order to run command there is something I would like to avoid. If, however, I can build a profile locally, `guix copy' it over, and *then*= SSH into the machine and somehow activate the profile (be it home or regular profile), that would work for me. Is that currently possible? >=20 > Ludo=E2=80=99. > Thanks, Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --qyUpVUi3cmrPuh3/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmVcCPkACgkQL7/ufbZ/ wak7XBAAhQaHXIeA5GL94Qqzbqkt+Xb6gBHuMSUr+NgkU6YDOajc/sRO8Dm1HYWj fNeaXjBdsFW10kDp06Zx+lQBuS/BFXQi5LQGDoAk1cB/C0aS43hXICcF/IEgVf7C /fMQvyoe2JFNJXDk/PrE58GAvZPIcuBgmhyEfCZ3Yy47fMLCzraTCQLp631onuZv Eer+gabAQqDMHwBfKdizGgOFTBVJHAGem/PZx+rWL8I3OizLbS5S0BqfMgMp1IsK otBtsTds4l85VYSz5QMzESXB66xEHBRQsBD6JZJUIyA3KTYEv3Gdzebef1jpzuXe 0HF1R43NuQ9sUaxT2D17RmaONanA0481PvzYze7Hbt105JjQhHMTgTpCuUqgYzFv 8pxOK+FkpqGOP4Qf95bgbamJ6Ytsag2kmH49e4BVtVUF2+s86eISHpRU0RFk6wvA f/htEtdm3uocRrrH2KSCIRqCO28CmsRGRNYwb73fQzuamQlUcGjUaVlNAllDAgXu 2F1udAFIjCxwNWud89r5SXnsb+18LfTwVc576VWAuldG5/YuE6deXELV/7uFXmiZ sqDtSMn93WoCNhTZKv4xzuxzFEPITI5rNm++LXIVpg9y6J0OFiMamNTSUqzW1Mvo j5xr4Z7L6UhFB0T2aiue9A8jXxgW10YKQ9+qCliYvAGPCH2KG3g= =4eSK -----END PGP SIGNATURE----- --qyUpVUi3cmrPuh3/--