From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uGWKJdHuSmXtGQEAauVa8A:P1 (envelope-from ) for ; Wed, 08 Nov 2023 03:13:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uGWKJdHuSmXtGQEAauVa8A (envelope-from ) for ; Wed, 08 Nov 2023 03:13:37 +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 1D6633C95E for ; Wed, 8 Nov 2023 03:13:37 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=niUi4YNR; dmarc=pass (policy=none) header.from=gmail.com; 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-Seal: i=1; s=key1; d=yhetil.org; t=1699409617; a=rsa-sha256; cv=none; b=TSHZvlDg9ZhvFKvbLXRNjMGC611Kcr4wtC+8lHPP6+HrAtDUeeRhn+d7hr3rp9SU5Z6VMz CDNq9YIhdl7SzRZ+XNd5KwAZ5MDUKusqbHzvpJVzxrr7jMCz7JDv4LIOzBxfTsmLdEW7eU ZQPFcdgMtUwVtlJK3+oCjITnOEaQJdcV6jfGTcmrFommxaLZWuBr8wVNyal61E3fgDCXXO yhVxDOrg5hBfc5zxw85RWRCvKPBFPWLOO1NfSsTk5lqMytLb3MXUOI4dIrUygIoFnA1xJC 7dFgqEBQdJpSYltDcePa1iEdjbFLcOOelfJ8Hev44I8Z/667MFJNlyThwbqgBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699409617; 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=228FAOXJpe+rO3XNtqwRLQXTrQ/cU93oiJ3/KA50fOY=; b=cfcHLjy0G0aMIr9A42p+NF0/HU9G5IYurwIqa50T2K9efhbvDvzF/TCTJfmcb1fL58+XIm +fe5K+o5F42e0Tr0sSe7e+Z5xlbiXBLnOIRH3i5DnA++mVvCyQrX6qlYBZVKmMYXGbFayV 8RBrXUedz+Wg04QUn6X/fAlsGcN9p/0MgCrOH6+CDOMQdv73LXHu/uqGjUKoJwOq+HSSZa xKZj2uGRa2MTS+6UtOXTQInE2Y1O4GTMhxRZVVYgFaAeV0r/ZehWhYMNTELgucBceyRs07 7zml78cQ03cWLqYhBVyp+rcAMDoAiX5IkCk3F3VKfreJCAFp99EPuNKuR8o5Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=niUi4YNR; dmarc=pass (policy=none) header.from=gmail.com; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0Y3m-000497-9O; Tue, 07 Nov 2023 21:12:50 -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 1r0Y3l-00048z-7I for guix-devel@gnu.org; Tue, 07 Nov 2023 21:12:49 -0500 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0Y3j-000255-HS for guix-devel@gnu.org; Tue, 07 Nov 2023 21:12:48 -0500 Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-779fb118fe4so415194185a.2 for ; Tue, 07 Nov 2023 18:12:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699409566; x=1700014366; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=228FAOXJpe+rO3XNtqwRLQXTrQ/cU93oiJ3/KA50fOY=; b=niUi4YNRDElzW/9bMX6NPfXZA93EvJg6sSAbmlFkm2ShszfRl8AE/pZ+8kcbCxyWyz /X8EIY0vNrOXumeRYtkWl/3yYDxzAEQYeulTvHR0sG6g7rEdbw24c4TdLwbr5CphVRQD PynTm1xMohoXGP6w0fF5FUg8Yt8XKQ0Zwr22DJSkOO1QgkLZ6B4ZsClGieDe0+Y8Qoja fv+ALurBYJcryBZVM6F1R/njHg5GyD6W4Xj0rFiCKbc/8trJYVmANP35cnczxdiA4ecH Tm9BKwTuMgbXsa6ujT2ClROwBCNxq07x/oPTSW2X1R6qXT8FROebcqC9dRDLzBS3O7yr rf9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699409566; x=1700014366; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=228FAOXJpe+rO3XNtqwRLQXTrQ/cU93oiJ3/KA50fOY=; b=i0ayU3c5LerOIm4s6VHkqDiSlWRRDgtCmBRz0tGa3wJqjQRclzBwReFcwGqDey3oSc KJIPm85E5CuGgSJuXdgAB3NVVppNDroACPP1PE4u+6qhZ0W2DgVEtR7fsgWIRGpJKH9g gEJ8JZSWbNm64tsKjec+vq0tAtKp7Dni54n8AmmoiuoyfUTuLXbZ8Qg1LBQH1gt6518Y MWlsM4QUaCoe/QI96iFy1yHMUbtMm2RsQitJuSNVxQJJMU+6amE38pQgUuGcfPCWn4Ks cgjF/Kipc4HSNd4d1l8avq2dc94QR5WD8pCm991q4J3s6JjhNrOTM/bGGvyR/RQHXZzv flnQ== X-Gm-Message-State: AOJu0Yz8BKKLgdwlWxGSgjupt9R1Nc/BbIgG/ktKmcdWdMzU/MK30Qlc u+wcLLJkKhqxsEOWerdGuN5tgq087L5CEQ== X-Google-Smtp-Source: AGHT+IE7Eji5cFhg44CbJK7Ad1KUjhdi93cTV5dwJ1BkxQ93Mu8kn+KeJnupU3htHvDfeSrcmC7V3A== X-Received: by 2002:a05:620a:4690:b0:778:8822:9a3f with SMTP id bq16-20020a05620a469000b0077888229a3fmr431733qkb.63.1699409565744; Tue, 07 Nov 2023 18:12:45 -0800 (PST) Received: from hurd (dsl-10-130-87.b2b2c.ca. [72.10.130.87]) by smtp.gmail.com with ESMTPSA id i5-20020a05620a404500b0076f19b9e96fsm525229qko.107.2023.11.07.18.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 18:12:45 -0800 (PST) From: Maxim Cournoyer To: Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: Better support remote deployment In-Reply-To: <87zfzp2vph.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 07 Nov 2023 20:45:29 +0100") References: <87sf5pu06o.fsf@elephly.net> <87v8adidqp.fsf@gmail.com> <87zfzp2vph.fsf@elephly.net> Date: Tue, 07 Nov 2023 21:12:44 -0500 Message-ID: <87fs1hhu1v.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.42 X-Migadu-Queue-Id: 1D6633C95E X-Migadu-Spam-Score: -9.42 X-TUID: qTHlVg/x6pq5 Hello, Ricardo Wurmus writes: > Hi Maxim, > >> Ricardo Wurmus writes: >> >>> Hi Guix, >>> >>> I build software locally and deploy the result to a remote system with >>> =E2=80=9Cguix copy=E2=80=9D. This works pretty well but has a few roug= h edges: >>> >>> 1. =E2=80=9Cguix build -m manifest.scm=E2=80=9D does not generate a pro= file. It only >>> builds the list of packages. To build a profile from a manifest file we >>> need to resort to something like this: >>> >>> guix shell -m $(PWD)/etc/container-server-manifest.scm -- sh -c 'ec= ho $GUIX_ENVIRONMENT' >>> >>> 2. =E2=80=9Cguix package=E2=80=9D cannot install an existing profile st= ore item as the >>> current generation of the profile. It can, however, install individual >>> package items into a profile. >>> >>> 3. =E2=80=9Cguix package --remove=E2=80=9D does not support regular exp= ressions, so >>> removing packages that were installed with =E2=80=9Cguix install /gnu/s= tore/=E2=80=A6=E2=80=9D >>> cannot easily be removed. >>> >>> Because of these limitations I cannot make use of a Guix profile symlink >>> forest on the target system. Instead I build a profile locally (with >>> the =E2=80=9Cguix shell=E2=80=9D trick above), copy it to the remote wi= th =E2=80=9Cguix copy >>> --to=3Dremote /gnu/store/=E2=80=A6-profile=E2=80=9D, and then link that= profile to a fixed >>> location on the remote system. >>> >>> I would like to change this workflow so that I can benefit from roll >>> backs without having to manually mess with symlinks. >>> >>> What do you think about changing =E2=80=9Cguix package=E2=80=9D and/or = =E2=80=9Cguix copy=E2=80=9D to >>> better support deployment of remote profiles? >> >> I like the use case, but perhaps it'd be best implemented via hooking >> 'guix home' configs with 'operating-system' ? So you could say, for >> this user, I want the following packages and services installed? >> >> Would that work for your use case? > > No, because on the remote I don=E2=80=99t have Guix System. > > It would still be useful, but not for this use case. I see. Then your suggestion to extend 'guix package' to be able to install a profile from a store profile sounds useful, or perhaps a new 'guix deploy-profile' (or a better name / sub-command?) that would automate the copy and installation in one step. --=20 Thanks, Maxim