From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qBwWErYmBGHMWQAAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 18:20:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0IUaDbYmBGGxdwAAB5/wlQ (envelope-from ) for ; Fri, 30 Jul 2021 16:20:06 +0000 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 475FA11E14 for ; Fri, 30 Jul 2021 18:20:03 +0200 (CEST) Received: from localhost ([::1]:48382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9VEw-0005u7-Ct for larch@yhetil.org; Fri, 30 Jul 2021 12:20:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9VAX-0002zD-5o for help-guix@gnu.org; Fri, 30 Jul 2021 12:15:29 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9VAS-00063Y-TM for help-guix@gnu.org; Fri, 30 Jul 2021 12:15:28 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 087BF5C00BA; Fri, 30 Jul 2021 12:15:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 30 Jul 2021 12:15:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= references:from:to:cc:subject:in-reply-to:message-id:date :mime-version:content-type; s=fm3; bh=uw1k2JmZxVc1CWv9iD0kL6qipI Pt4ymdcOzaTYVGLgA=; b=uYS+g+YumBx4SmewVayMH/xOQG25zZhmvh4CIzIOOQ eRi7YXDgXOLJXcDXHPjmOn6FOnoiVqsmd7glOj3V1tiou4VmuA1tYaHoxPeVViE0 lK5S5Jjd70RrN1YKsFm2XoiTF66Gfvj+QPSyxVGwodOQuOmwxm9Z5geTmWHVHtOR TqtSK02hTKucSZr1X00aDZotWqlyHEng7DZVtyutgd+jk/AZVBDPtR26ozAgbt8Z WIf75scWKyDPjfgssQDujHRR1eZ2zjeZoEO/ARhx/ihvfnsvrU+/LJf0ebaKeCko qiiXHhsn0WMG5FbPSkJbOIZLCPwZr9EoBouX8Yez1yKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=uw1k2J mZxVc1CWv9iD0kL6qipIPt4ymdcOzaTYVGLgA=; b=cSa/LiI3YpMqyNcgZvuimE U16s4Q7b2GcsctCrXT6avywclFYB06LbMLKhAzjPj0iB4qOKtYEJdTYf5ME0rPa1 U5BnPEsK3Cg1DTgoCWc+hQ0+QGXCdZv7HHHZT4R4tqOpm+MOILREcjdRRT4QFE/e 2gX6FDJhszLSvO5vVzZbBCEsDbD8vnJg6aBi5SJ3Yn21V5WGZBmIGVJxcs2RDIj3 851rSHQtLNcX7NXbtHMLKY72cmQ2H2NJ5vEyieJScA2Dji/25kNj8IH2BbQHvqYh vWbLRD/qKz9xsSWZbDgUyH6CYar2KnFeh586ZMCyEk+xXMBNta4HO+9Pudlsd8iA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheehgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjkfffgggtsehttdertd dtredtnecuhfhrohhmpefglhgrihhsucfrlhgrhigvrhcuoegvlhgrihhssehfrghsthhm rghilhdrtghomheqnecuggftrfgrthhtvghrnhepieetieejhfeifedtveektefhkedvgf efgfekgfefvdefheetieduieeifffguddunecuffhomhgrihhnpehgnhhurdhorhhgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvghlrghish esfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Jul 2021 12:15:22 -0400 (EDT) References: User-agent: mu4e 1.4.15; emacs 28.0.50 From: Elais Player To: phodina Subject: Re: How to add custom channels to ISO In-reply-to: Message-ID: <878s1naid0.fsf@fastmail.com> Date: Fri, 30 Jul 2021 10:15:07 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=66.111.4.27; envelope-from=elais@fastmail.com; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 30 Jul 2021 12:19:53 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627662006; 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=uw1k2JmZxVc1CWv9iD0kL6qipIPt4ymdcOzaTYVGLgA=; b=h8NiNUXNw7M+M2S4lBwF7Z+kZo485ZgZn0LUaxy9eVl5ZRetXQOtOk3x4C8248gcqvOdxo HDUKWg6Bm6PZhKtT+B9vGhWQ+co393PvGL01iaulQWEbhK9yc01Sh+Vyr9Rwy3xYwHSrxI yXBRA4dKGBYu5J1TrLrgNtiWWsvlu32TC9zZMeOyiqinxAEnnwXtTNvadOUeJQYci5RIb0 3s9xD7uwaVd62MSQmdMnpg0h68YhItfSiOIS1FZ8P2dnnxPOMoFNEEEJphJoLHS7A+llNx ElPrvL+tlGoNq7gkdbElWVQ3S/zK+4liti5ZxRT3lS2525pwtMQsY6fOpUXkKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627662006; a=rsa-sha256; cv=none; b=UQC2OdKE7ygoTZyC3SUEq/SxwpArY0h4ze02jdIt8su/BTTSYJ1tWxT30FAmonD9vo8hcM Gwyb2wbCFnHgKwwhTHRxGW2YIH4zqTWS/DrNPUevGuQTIE9TK8iCr/TRFYDQv+fx7RXBAn dnW+nUmzl/cnh10d41Rg8ZHv2m2uQtnp26L1XaUaZFemPCZHFaX4y0hSnihXggcSf0jvHF G+Xr6WkIlpMAGfOD5qa0FlEG+loHDEQACZiBC7RKvA9Cbz9/OIKbHfG882gES3P/BN9so/ 2+4pHK9emoTOvAsmuxmLy8y9UFrsh2wlkcKguQvckrJd32ebnwLZoXiTznZN6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=uYS+g+Yu; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="cSa/LiI3"; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=uYS+g+Yu; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="cSa/LiI3"; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 475FA11E14 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: oCIyNWWEXbWy You could add the custom channels file as an =extra-special-file=[1] in the =os-configuration=. It would look something like this: #+BEGIN_SRC scheme (define %my-installation-os (operating-system (inherit installation-os) (services (cons* (extra-special-file "/etc/guix/channels.scm" (local-file "/path/to/my/channels.scm")) (operating-system-services installation-os))))) #+END_SRC Plus side is you now have a global channels file from which all you need to do is run =guix pull= to have all your channels up to date. You may also want to pin those channels to certain commits just in case. Down side is running =guix pull= will start filling up your disk or memory on an ISO and you can easily run out of space. (I would advise not running =guix pull= until after partitioning and setting up the target system), and this file will be added to the store (but if you're creating a channels file in =/etc= shouldn't matter honestly). phodina via writes: > Hello, > > I'm migrating to a newer machine and I'm taking my GuixSD > configuration with me. > > So the first logical step I did was to create an ISO image based > on this section [1]. As I use my custom channel with modified > packages I added them to the configuration to make them > available on the new machine. > > Or so I thought. I booted and partitioned the new machine then > ran > guix system init /root/configurations.scm /mnt to install Guix > there. > > However, after reboot turns out that the packages are not from > my channel but from public Guix repository without > modifications. > > Therefore my question is if it's possible to specify also > channels in the configuration file so that they are used during > installation? > > Reading the manual I came to a nice command guix system describe > [2] which gives me the current configuration with the > channels. Could that be used to build an ISO which would then > also know about the additional channels? > Kind regards > Petr > > [1]: > https://guix.gnu.org/manual/en/html_node/Building-the-Installation-Image.html > [2]: > https://guix.gnu.org/manual/en/guix.html#Invoking-guix-describe