From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YNSdHjv8CWSckgAASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 16:33:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YHduHjv8CWQBVAEAauVa8A (envelope-from ) for ; Thu, 09 Mar 2023 16:33:15 +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 28A729FBF for ; Thu, 9 Mar 2023 16:33:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paIGC-0007vk-Dd; Thu, 09 Mar 2023 10:32:52 -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 1paIG9-0007tv-OY for help-guix@gnu.org; Thu, 09 Mar 2023 10:32:49 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paIG5-0008QL-IE for help-guix@gnu.org; Thu, 09 Mar 2023 10:32:47 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CA9CF445C6; Thu, 9 Mar 2023 16:32:39 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jaN_o-ZefXv0; Thu, 9 Mar 2023 16:32:38 +0100 (CET) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678375957; bh=/9baJLHUuyBfWgbyRJH9ivzZ6ujqB3Zo7PY+XCU4pD4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=V7zOgwj2mDkfQWiwYphrpVTb7tiRSL0z3e8pxknAN7/s054bxnJ0rZwEfrb8QwzgK 7s3eFxKYOWG5eRsHIE67voM5LTghfJIJ4MW3NH/mmQBhV4ia7hXk8WTa6cdlgM8/ib mtmRbwc2Z7n7jHTbfD5l4xg04BI+KPta7cwji5bh3Hstiera6/1kDYVHWsu3gYZqcM vseabjDNbiFzEwKTR4dYhchuw1H8VPLOeDpzIDc0a130BSiny1v6x8x9PoMauCM1KI zGSaSuQ6VA0Nrt/1R8YF9ZHgEp2xAIz/a79DCwWLBZL0gvDvo9TaBhuZAAVlTg8MQB j4NLaA/qaPlLQ== Date: Thu, 09 Mar 2023 16:32:35 +0100 From: SeerLite To: Kyle Andrews Cc: help-guix@gnu.org Subject: Re: Mysteries of channel configuration during system reconfigure In-Reply-To: <87bkl2mwt6.fsf@posteo.net> References: <87bkl2mwt6.fsf@posteo.net> Message-ID: <35cb99042af417705c800729642c0a1a@disroot.org> X-Sender: seerlite@disroot.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=seerlite@disroot.org; helo=knopi.disroot.org 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, 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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678375995; 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=hDiDVewILLAyzdBhgsfNGvyyWO4xfg+GDvBTn+qnUpA=; b=lL5td8Z7tiUgn8JYy8slZmlnD4ZBLjgBI2yBuCRjRpAPO7EB35rhZZijms63ET8V2eWEV6 eIFxypRjUcB/A3bhrUHeq2kolnwMg8nYNA51JSudfS/6fGoKyGekNEW3fl4n08Zakc31Li wgrbh0jUPGS8HIdnKn3NktC6++RxU1t43wwxueShwbwjxNJk9fx9W5itn005DNUpg44PL4 qLj+viBv/vFBYGe/RC3nvOGa9iXDuVh3qx/M9AFGhY8HyQmxHq2IfdZRnhW8vAozq11YZu LkrFYLaXhMWlF4n3BfIA4sY6T7ngJRkg2WkhZc994Hc6OVn9pAnkipRqBHtvhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=V7zOgwj2; 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=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678375995; a=rsa-sha256; cv=none; b=DSXMwNl9c8KVY0Brx7/ixmF4aQ2c/gOcet110pQMuqHdUm+EWeEq1VdO0AMwq/7Pec/lVK qlYbd6Po2/9O5nBSrnLnbFVch/eIaHFWyRBtDcjs1m6NCugpTEgKkN0ES5MbyC3L4L56cN wp5InkonmIT102Ciowk8g18B15WC4KLhwzeZ8OhfwHs8whTwFOV9kZDaSyYRgncKNaKE3n RedtglsidsXtYjJbLPi/Q0hJG11/3TwvVxRDO5ACZciaujFpLLYo+EtwkRF8FPBXHDLSWp //2TTjkcNfjKpJ0i/bo5lIUdgAs0up+EvL1Zo0/wC+hGTgUuRR84UTMA6VeRhw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=V7zOgwj2; 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=reject) header.from=disroot.org X-Migadu-Spam-Score: -4.92 X-Spam-Score: -4.92 X-Migadu-Queue-Id: 28A729FBF X-Migadu-Scanner: scn1.migadu.com X-TUID: 5wZ5oPsmr1y5 Hi! On 2023-03-09 03:50, Kyle Andrews wrote: > One of the selling points in Guix marketing for me is that the system > configuration should be self contained within /etc/config.scm and > channels.scm. However, this appears to not be the case. There seems a > third element hidden away which prevents me from running: > > ``` > guix system reconfigure /etc/config.scm > ``` > > This command errors out: > > ``` > failed to load '/etc/config.scm' > ... > no code for module ... > ``` > > At the moment since I am still very early in setting up my new > computer, > I have to type everything so I'm not going to go into more detail than > that. Suffice to say it doesn't see the modules I need from the extra > channel. It did see them during the installation otherwise my computer > would be in a far less usable state than it is. `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. 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. After either of these you should be able to `sudo guix system reconfigure ...` and get your system running as the channels will be available again to every guix subcommand. 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. 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. > 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` I hope my explanation was helpful! SeerLite