From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iEOjIoL0TGVXUwEAauVa8A:P1 (envelope-from ) for ; Thu, 09 Nov 2023 16:02:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iEOjIoL0TGVXUwEAauVa8A (envelope-from ) for ; Thu, 09 Nov 2023 16:02:26 +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 7183C30151 for ; Thu, 9 Nov 2023 16:02:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZSGlHG1c; 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=1699542146; a=rsa-sha256; cv=none; b=fdOf+s6zYlsjr6BpSiR95AxV4MjckFBdhYTWfcKcsNNHVyx7TsfK0BEn2+csyHXeho/KPL UxDZlasalC2znU0XkpQXf3k8oI63GRJFwxhX0w+M4XBik7euQmfw+kMSBJ9zqLTJXtao8N jO1rp9f3HpoWzdcIC4vj/ePiuvI0b66do14B0nzCRiKJiUj90TCoa++i8hUY5osd1GaZHK LnPqSh4xYIj0CBfCdWBgu4Uwh5r30S6Hj1l1yZDSHCmDskIz1jf7EQI0lrBGI3eAxZiCp5 iYew0Bm/0mLahhv0GWiWJG9hpBYeOGSr5cRMWNMz9a1nheNGDOXDboAmLWGbmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZSGlHG1c; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699542146; 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=MzE44P67sb2KWW1wrAK9PjsfvUHgOzrwBL6lJ65048M=; b=qR+4OWIZUQiNmSP7j8B5iBsCzelN7Y4JVlDTCMTG+kf4LsvQrSa34AAb8V5uRatQ3UPVqn JADYUZ/MEVhRnDXwzVfszJp/1kg2BtxNCN1tacNLqFlKxRuc5dkcCDjap1TiY5gQ+EDapA nvb1BBsC5CIL9olqnM10b+BqUiEtjoohbGxPuhxS0FVCzF3TVLmhwbgRb4dLPk47PYp1Ud NwJC5vEI1k5mfOZq5P+aSs+S+3ao8UNk9k6J7YnykI8l9461EWalbeHtSqIKM8gZ4ZCMBa brbAxTAgm1bnWidQSpdzRZV/rAZHVEoFcThVFOJpzUatL/CxWrWLXrQzxyo7/Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r16Xb-0000Na-7I; Thu, 09 Nov 2023 10:01:55 -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 1r16XU-0000NL-Ci for guix-devel@gnu.org; Thu, 09 Nov 2023 10:01:49 -0500 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r16XP-0004ue-J0 for guix-devel@gnu.org; Thu, 09 Nov 2023 10:01:48 -0500 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-778940531dbso59828685a.0 for ; Thu, 09 Nov 2023 07:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699542101; x=1700146901; darn=gnu.org; h=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=MzE44P67sb2KWW1wrAK9PjsfvUHgOzrwBL6lJ65048M=; b=ZSGlHG1cBx7CBnMGfoznZXseRx17GxIaZp5+qSgBDA06xMV0zFkzodwdqbyqIW8bAW TMhXRtTQ2AJDa2vJtl/em+Bj42P0QWHAaSOzF51+u/wLAY3N+zGpfgCoQCQlAexJ67Wr tHs+v98UEFBTTNoAhWsQtd0w5IEbL+kkmAF6q8HTZt7w5N+mE036lDj/xVd6NFrgb736 ZhI/EjyKi4c+ZHKDe7GqQ6yHveUozpqn+133D/yFaYpYpg0LH2ST/HzTczBjZ0ysU38E M9PAOqqWzE0+OoLfAymfgideE2s4H8dM8wKkldGa9yDbVi3DpgrIc2LzReKhkl7ATdwY 7MOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699542101; x=1700146901; h=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=MzE44P67sb2KWW1wrAK9PjsfvUHgOzrwBL6lJ65048M=; b=OD8L9Z/l9NWGctmad+ODBHSqm1sIWwHnf2/wiS8eogNrY4Nh4rLZzFRZPytgswLVy6 1b7vLkr2SPQKhoAzt70bbdYIU9cizCBVGpcZZ6gCD3E3PNIewHAAjNJVrNABbgKTnUYR FnSslW7MzQsMyBLuirv+uQN9QLw2oIF04IxZFHyXPkpgSDU5GZUPUg620JpPZlAsNfQA akFHums3nvhwHFusWto54yRZSm4qQtdBu8iwI2ZJHngb5+ddnn8vM8YJZmaKeNoZJX8B cUYCnCtAMGONFE9y3/xuqlbS9dJWwN/cxarIzouKI5hmqh0VTlDbsCK0mVbqD0idX1DB psmA== X-Gm-Message-State: AOJu0Yx/bLsc/rD9/w55kDhqby/bRM7fr+ayoIYwlyMd8Nq75F1WkgPX SVquS8PzPGW6Y1Of5TBi9eoLcHK64nk= X-Google-Smtp-Source: AGHT+IG3uerfkQA+1Gk+euSrffk8JvbHE7YDT+tHrZy5OIfYiSldZtgimxroNLAPnwMBEtDWfW/wfg== X-Received: by 2002:a05:620a:2a14:b0:774:cd4:4a58 with SMTP id o20-20020a05620a2a1400b007740cd44a58mr5084512qkp.39.1699542100989; Thu, 09 Nov 2023 07:01:40 -0800 (PST) Received: from hurd (dsl-10-129-91.b2b2c.ca. [72.10.129.91]) by smtp.gmail.com with ESMTPSA id f15-20020a05620a20cf00b007770d47c621sm2065800qka.66.2023.11.09.07.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 07:01:40 -0800 (PST) From: Maxim Cournoyer To: Felix Lechner Cc: Ricardo Wurmus , guix-devel@gnu.org Subject: Re: Better support remote deployment In-Reply-To: (Efraim Flashner's message of "Thu, 9 Nov 2023 09:38:04 +0200") 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> Date: Thu, 09 Nov 2023 10:01:38 -0500 Message-ID: <87pm0jezsd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72a.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-Queue-Id: 7183C30151 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.91 X-Spam-Score: -7.91 X-TUID: VU5qkjch2+Ia Hi, Efraim Flashner writes: [...] >> '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=ssh://your-target guix package >> -m manifest.scm' can already accomplish? :-) > > Currently there's no ssh connection caching, so using GUIX_DAEMON_SOCKET > can be quite slow, I normally allow 5-10 minutes for a profile. That > works best when you can't use guix copy to send derivations over. > > The profile effectively already exists, it doesn't need to be computed > on each machine. It does seem more like deploy: take this profile, send > it to that machine, and activate it there. `guix deploy` already takes > a file, the file could have a profile (or home config?) and a location > for the profile. And a user. That's some idea I suggested earlier (add integration form 'guix home' configs to an operating system definition). That has merit on its own, but wouldn't solve Ricardo's use case, which is to deploy a profile on a *foreign* distribution (not Guix System). -- Thanks, Maxim