From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id COhABoUmCmTQ5wAASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 19:33:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OG5TBoUmCmQw+AAA9RJhRA (envelope-from ) for ; Thu, 09 Mar 2023 19:33:41 +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 3A317175E6 for ; Thu, 9 Mar 2023 19:33:39 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lgaRdWQA; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678386820; 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=Pd6DP0B1OZ4oJk7OzWcZ9g6iWQWUbkRBfNT3KTCxlPA=; b=kc4ZImKxe/wq6xm5oWvXYU+aVyeAjWvEZtqKDEjy942Ibtf/VHYL4IW1tJgl2za2KkrIn+ iSth6aDMxeLlAj1Bm8Y9eaOcXUl+EcK4zlZb3HcM/cigtd/iTcLfWmSfDEx4cjlba2r+ux uChMPGgIBI+s4GFFwTdxlauYHZ4NUsQ33YwHkyXH3vbq9lzVFAi/uxCQgQhD9fnB/XKlNp +47au7NTk4JeBFeM0W1yjCAlwHka2Sh9aQoOLVLU+anCZunQo95+rErC7T6qBMPDWQXWMf 0ivV7fZWk7g8MRuRRG76yoOyEG52yuXDppW25kARMDYSPxYdiKcYeBBY7k+rEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678386820; a=rsa-sha256; cv=none; b=Ex1bZrhWImMpUWvGTEnRgqak3HapAA/P2td65LtQhoNBzag47SQNC5hrycQ45cUlW6AS6+ p0XdwAOfv6/EQFq99ubJURsySuvpvtDbwdpFg+weZhfLAW9OhjXmcV4EaOGQ1mfkUVwi6w rMhgtff8np+75wx6XNJOgUeGdVRgFMIdAypnG729f0PJ16jHHh+p9s2/L/1dVJApjNvC4J IWk6EJcHEnNdLjUbvbQk09uMpvEQSTrHxOT5MQjgs0yqWDOQdNJ0BXN8MYQIH5A3qIIEfg tL6MP4XYhtcv7wPMHEdsJMmgN1tJYYJL+eZmum6KOrOILSuawaGTr05VN7b2jQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lgaRdWQA; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paL4s-0004L2-VB; Thu, 09 Mar 2023 13:33:22 -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 1paL4q-0004Kd-6C for help-guix@gnu.org; Thu, 09 Mar 2023 13:33:20 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paL4o-0002Es-3r for help-guix@gnu.org; Thu, 09 Mar 2023 13:33:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5C50E240468 for ; Thu, 9 Mar 2023 19:33:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678386793; bh=Pd6DP0B1OZ4oJk7OzWcZ9g6iWQWUbkRBfNT3KTCxlPA=; h=From:To:Cc:Subject:Date:From; b=lgaRdWQAk4yMzqgom0Q1yRWTzDZTN5h4n0iFIO36D48TXbXVLALMuJxjQg1IiuCsi dGIony5+kLClDsNard3xC9QDuetUGXb3Q2pLngZQJd/9e2G+3It7mOOzLRvf5kDf54 fAuRno59TIrxRvoxoQMfaByDfEi7fqKJ2670CU9+GmBrELr+XXGGsUpkW1jizpx7Zi H0InBlIwVLtHjWqEge8fAr0Ugw4/XadGFW1ZOdqC45h4ATI7gGasW7oNuWUvHjpWvv FKnOJcoezZ3yjtbgR5ZfUmm7Lo/loPvqTqBWWTdIcLIjUo8PVKyMIRujN2H8Yy/nrP OBSKNGXanrsdQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PXd912M8Wz9rxQ; Thu, 9 Mar 2023 19:33:09 +0100 (CET) References: <87bkl2mwt6.fsf@posteo.net> <35cb99042af417705c800729642c0a1a@disroot.org> From: Kyle Andrews To: SeerLite Cc: help-guix@gnu.org Subject: Re: Mysteries of channel configuration during system reconfigure Date: Thu, 09 Mar 2023 17:58:06 +0000 In-reply-to: <35cb99042af417705c800729642c0a1a@disroot.org> Message-ID: <87sfedbwrg.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=kyle@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 3A317175E6 X-Spam-Score: -7.99 X-Migadu-Spam-Score: -7.99 List-Help: List-Subscribe: , 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-TUID: Wj6mEEl0w6VP SeerLite writes: > `sudo guix system reconfigure` and any `guix package` command will (by > default) use the generation shown in `guix describe`. On first boot, > this generation _will_ be different from the one you had in the live > system. This is because the generation is saved at > ~/.config/guix/current on every `guix pull` and that file will be gone > together with the live system. That behavior doesn't make sense to me, but I have accepted it for now. As I tried to explain in my question, I *had* performed a guix pull -C ... before attempting to reconfigure the system. However, I think I only tried to do that from the /root user. Since then I have tried to pull from the sudo. This did in fact allow `guix system reconfigure` to run. > You have two options: > > 1. Get the channels you want correctly set up in > ~/.config/guix/channels.scm and run `guix pull` with your user in the > running system. IIRC this takes a while because it'll download the > whole Guix checkout again (the one used to install would have > disappeared along with the rest of the live system). > 2. Run guix pull -C /run/current-system/channels.scm. This will pull > the exact generation used to build the system. This will also take > time. This /run/current-system folder is interesting. When I searched the Info pages I saw also that it is related to files stored under /var/guix. Unfortunately, I was not able to glean the overarching rationale for these directories. > Note that you could also copy /run/current-system/channels.scm to > ~/.config/guix/channels.scm but you have to be careful remove the > commit lines, otherwise all your `guix pull`s will pull the exact same > commits and you'll stay on an outdated system. I appreciate this tip. > Maybe it could be clarified in the manual that another `guix pull` is > needed after the first boot. Or maybe the installation could be > optimized so that the checkout is copied from the live system to the > installed system. I think it needs to be clarified that this process has to be done from a *normal* user account in the *wheel* group. It seems the root user cannot perform this step. >> When I run the following command: >> ``` >> guix system describe >> ``` >> The addition channel gets listed. How can it be listed yet be >> unknown to >> the `guix system reconfigure` command? > > Because it was indeed the channel and commit the system was built > from. It has nothing to do with your "current powers". That all > depends on what generation of Guix you're using AKA what comes up in > `guix describe` This unnecessary tie in between the system state and a particular user's software profile was really tripping me up. > I hope my explanation was helpful! Thanks!