From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aKhwKQbVCGIvkQAAgWs5BA (envelope-from ) for ; Sun, 13 Feb 2022 10:53:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SGYbIgbVCGJdTgAAG6o9tA (envelope-from ) for ; Sun, 13 Feb 2022 10:53:10 +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 493069A25 for ; Sun, 13 Feb 2022 10:53:10 +0100 (CET) Received: from localhost ([::1]:42740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJBZ7-000167-39 for larch@yhetil.org; Sun, 13 Feb 2022 04:53:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJBYh-00015h-CD for guix-devel@gnu.org; Sun, 13 Feb 2022 04:52:43 -0500 Received: from jpoiret.xyz ([206.189.101.64]:41480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJBYf-00060C-Eu for guix-devel@gnu.org; Sun, 13 Feb 2022 04:52:42 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id CA2BA184F2A; Sun, 13 Feb 2022 09:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1644745957; 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: in-reply-to:in-reply-to:references:references; bh=vwg7KBvWXvxXy+yIO6nCf7u4dRgWthhEibUWKxMA1js=; b=V32CjDsqSIZ20V/o9zdUFd1sqhdAlyVWRFh+dfY5Wznv6ubBObsru48r+SxxeAAZhRYmkV cClyEBS/sKqmo5acbi5OUvmDLAk1dxwUfgKXstSMb8LsOG04CpJ3wAuOfWeVhC0dQ9UoSN pFNqFWJayLr8ab1ysf6O/1GyyafggRzrck0zfUVxCPYKwpe8NA1FeXdy0ptnDXAjp5M3X+ dY4puWQfqZJHd5C86huhmbNArhl/VEqwoVO+WlIs7QEfGFDMRLhwT+qXY8mnOf58hUjKNs 4+gvQdhc4Cdh/DGbsJjulLmvT/PKcIp6YOpae6WhWqEL1mEAVd7X3rJjaV3NUA== From: Josselin Poiret To: Maxime Devos , Antonio Carlos Padoan Junior Cc: Mikhail Kryshen , guix-devel@gnu.org Subject: Re: emacs tramp in remote guix In-Reply-To: <2cb48c660574adbc69bd14851306ab9adcd5b5a9.camel@telenet.be> References: <87h795s97x.fsf.ref@yahoo.com.br> <87h795s97x.fsf@yahoo.com.br> <87v8xkdcw7.fsf@kryshen.net> <87czjsmif0.fsf@jpoiret.xyz> <87leyghsh9.fsf@yahoo.com.br> <2cb48c660574adbc69bd14851306ab9adcd5b5a9.camel@telenet.be> Date: Sun, 13 Feb 2022 10:52:35 +0100 Message-ID: <87a6evm6u4.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 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, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.769, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644745990; 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=vwg7KBvWXvxXy+yIO6nCf7u4dRgWthhEibUWKxMA1js=; b=DJikXQtdu1ZXVhKLSoGQhZPaHxaymADNi4BK18ePubbf7E/tI/R6Gv8/vVIrSmnd+uEnvJ cnmoc6dKtslgTmvSmhtvIBsNvc3par9/Bi28IxndzBts73KjKonrm2gLos+nSG9iddAP6/ GXGBUUnQoLXI/XLSWrSr7WMsKwz1YaDxkurH2H6YAn/bAR0w68jaDBAehM/QDS9IV+rLMl H9QneMLm3mbeEeoKdnhltHZRFBQZMpzw2H/I+qGzogGRJQpih6QjjzOFtrzwA+Wt2Hat2a RdxdecQ64VyuqMIlEBnkg35HB+0CXRTjoe0YZJwwBHHOeX7wZrCt0w5qV2XyNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644745990; a=rsa-sha256; cv=none; b=Nmfvp/tflmF3oo0a/1T3IjbVXMvkm/M+4uJ3mngeefOZ14iLVhZpnMDEyRw+6Ug4/Co3Dd k5+cFKqvaP95oPKzBAkrSONN/c3uSkmR8KPKfOrzI4OioSO8cQIqAERfLuOJx+rckmoZ4V LMYLVF0CkQrfqFyXGwh7Q1gZfE8MB8PqOd/Gr+ijysrG9uYwo8MWm0U/+mXXhJmfrHd1sv lrRgsIXSmPou8uyg2TGgwDHZ4EJEQzqew99Wk3jFCml/GmuKXaBsF8STYc9xK+ngh56DyZ 8AKQN9aC/FZ//XyCx8w9WMrn68UC1mNKDrd9hRE/ZSsJisr86oNJYaw983Lw9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=V32CjDsq; 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-Spam-Score: -4.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=V32CjDsq; 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-Queue-Id: 493069A25 X-Spam-Score: -4.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: eY3PXd0aeGAC Hello everyone, Maxime Devos writes: > I think that ideally, the tramp package in Guix would be patched to > recognise ~/.guix-profile/etc/profile and /etc/profile (when present, > on the remote machine) and use that to determine the PATH for the > remote machine (or some other system, whatever works) . > > Thne tramp would work out-of-the-box, without having to consult a > cookbook or manual and without having to know that this information is > located there. > > Greetings, > Maxime. Unfortunately, this would only work for Guix-to-Guix tramp connections. I think the generic 'tramp-own-remote-path is better suited for this, as it uses the login shell of the target user to find the proper PATH, something that is much more robust than TRAMP's default (and works 100% with Guix). Maybe it could belong in a `Guix-specific application setup tips` section in the cookbook or manual? Best, -- Josselin Poiret