From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SGurN2BwdmafdgEA62LTzQ:P1 (envelope-from ) for ; Sat, 22 Jun 2024 06:34:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SGurN2BwdmafdgEA62LTzQ (envelope-from ) for ; Sat, 22 Jun 2024 08:34:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mur.at header.s=dkim2 header.b=ruXnJrni; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719038048; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=cVsCkmDYcHv5yLcs6dqRhmgj7QhUbOGz607rLzDwEZY=; b=NqjO4rl1ux9/KQcUe3vE/ugDyaSqUrZ9cO2P3dVCxpGoalHzJ8eYkjKbt5TC4RlWZCSX9O 86YQBNZ5OpeenH7OKElkpTtOolfyj98Q/aX2soGIL3fH7lpeaioJgenj3DB8iwRvAtfWf3 NPX5sherZkcnYJomya/vhmdQgcbKOfY+dwrjxO61lHcYmvHtRKrdv+0OctbfvvbGAIX28B /3d8I5UamK6PNQXwTLtgtUZy5W6o1aCoAAxgXTQW9CgYHXL6bri3WN+aJ5tT4Jrg0K+A6S ij+qhL8WJkhBz6scR+3AEOle5jDi6vLeR4phZBJyAW3OjXkC/Mc7+5vt4cQTkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719038048; a=rsa-sha256; cv=none; b=Nww13X87dpwRWiSAZs4O8Nhf4K4t+6DipnlPY6MmkWlsJQTz+xpt8dMfFy6x9jwl8czIEp CEIWCsj0g3MQ3tqCtrrVy8zVjHXsodZ1ZUH1oU6sQRiI7IrWo+QJnXBeerFTA2nkJMAuGi taPvhLuntTSYsop9SfbtcD+Eyp+9w2CDuWkLTz+VIM7PoVL19XhpoeTUT3u6h3SqLwUQ6f qji2U7M3m/WXSDlL2EhZAORD1DacSmRlBj24aWMHrpCPZSK5vOH9w7rBeYdY856zILiYxO eUi4siGEAaQ3lUjFck0RaYfPaH0DYcdrvafdDjpPDVm6oCIbtSpItYJrvY/F8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mur.at header.s=dkim2 header.b=ruXnJrni; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" 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 A784833292 for ; Sat, 22 Jun 2024 08:34:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKuJn-0002cl-VY; Sat, 22 Jun 2024 02:33:47 -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 1sKuJm-0002bR-KS for help-guix@gnu.org; Sat, 22 Jun 2024 02:33:46 -0400 Received: from efeu.mur.at ([2a02:3e0::42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKuJj-0000fh-Jq for help-guix@gnu.org; Sat, 22 Jun 2024 02:33:46 -0400 Received: from localhost (2a02-8388-1886-ea20-0000-0000-0000-2000.cable.dynamic.v6.surfer.at [IPv6:2a02:8388:1886:ea20::2000]) by efeu.mur.at (Postfix) with ESMTPSA id 381F445D07 for ; Sat, 22 Jun 2024 08:33:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mur.at; s=dkim2; t=1719038010; bh=eYArUVjpkpFpqpiAK24DI5UNsTXBtL2q//FduNHvGlU=; h=Date:From:To:Subject:From; b=ruXnJrnifI2vYJPICiHSxpgw4OBEeyaQAviGPAGh714uKIBdPTIe6l01T7Far2mc1 BP4z27Xu6c9joHoqCmw4MnigT/Crzr0SPIOzudEppyZLgv9P8y9ZMwBodvMq205hCU 0evsbrwL1EUWW4fPLXr9cQTTpclxS3XUdn4E7IuPpqfzDgEYZ6KuD7DRaf1nXyX8UE iy5qzpKWIBK2TCdq2B2UdiERf5hkEbLUXT6g6z6FY9fbTrP4nIL2sBzAizMYVljmQM jyx0LRxg9ORyX98OJuTiJbVCparSQVoWqG/CCao0s3qeTHPe396mjB38I5rIzwV4tJ UfAIEAoddvECpMC9vb8+J42Ve/YYcUxZvlocjIn5ficwjKnLs6DwsJDI0uoGxbGVjm wEhtRlY95pmKsauKpMlKw8RoZFQvfu0fLV2II+ppZ3ecSZQMd2oJs9yPgCYd0jrVUt Yvzx81wY0H4MQxvGB8OMhuMk1oJpAVSEoKwAW5XueHgFRX0+3NP Date: Sat, 22 Jun 2024 08:33:29 +0200 To: help-guix@gnu.org Subject: What else could set the GUIX_PROFILE variable? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Received-SPF: pass client-ip=2a02:3e0::42; envelope-from=adam@mur.at; helo=efeu.mur.at X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam McCartney From: Adam McCartney via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A784833292 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.56 X-Spam-Score: -5.56 X-TUID: 553pqqSUEXfF Hi Guix, Does something set the GUIX_PROFILE variable to $HOME/.guix-home/profile by deafault? So I've been scratching my head about this today. It may be obvious to someone else what is happening. I'm running guix ad a foreign distro on a number of machines, others are guix system on one. Some use a profile that exists in '~/.guix-home/profile' others rely on '.guix-extra-profiles/$(hostname)/$(hostname)'. I can observe the following behaviour on a "foreign distro" that uses a profile defined by the hostname of the system. I define a small function in my bashrc that checks to see what one is active. ``` # .bashrc function guix_activate_profile() { # Check for a "host" profile # Set it if it exists if [ -d "$HOME/.guix-extra-profiles/$(hostname)/$(hostname)" ]; then export GUIX_PROFILE="$HOME/.guix-extra-profiles/$(hostname)/$(hostname)" . "$GUIX_PROFILE/etc/profile" elif [ -d "$HOME/.guix-home/profile" ]; then echo "default to ~/.guix-home/profile" export GUIX_PROFILE="$HOME/.guix-home/profile" . "$GUIX_PROFILE/etc/profile" fi } if [ -z ${GUIX_PROFILE} ]; then # none active guix_activate_profile # try to activate host profile fi ``` After I login and start a terminal emulator, everything appears to be hunky dory: ``` amccartn@mc ~ > echo $GUIX_PROFILE /home/amccartn/.guix-extra-profiles/mc/mc ``` As soon as I start a tmux session, something mysteriously sets the GUIX_PROFILE to $HOME/.guix-home/profile. And the original control loop in my bashrc doesn't run. ``` > echo $GUIX_PROFILE /home/amccartn/.guix-home/profile amccartn@mc ~ > guix package --list-profiles /home/amccartn/.guix-extra-profiles/mc/mc /home/amccartn/.config/guix/current /home/amccartn/.guix-profile ``` Note that the guix home profile doesn't exist on the machine! ``` amccartn@mc ~ > ls -l $HOME/.guix-home/profile ls: cannot access '/home/amccartn/.guix-home/profile': No such file or directory ``` I realize that the problem goes away if I remove the control block. So maybe it's just a logic error on my part. I'd still like to know what is setting the GUIX_PROFILE to $HOME/.guix-home/profile when I launch tmux. Thanks! Adam -- Adam McCartney - https://admccartney.mur.at /