From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oJcSFUSjCWHB9gAAgWs5BA (envelope-from ) for ; Tue, 03 Aug 2021 22:12:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gDDGEESjCWGnOwAA1q6Kng (envelope-from ) for ; Tue, 03 Aug 2021 20:12:52 +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 ADBF027BD1 for ; Tue, 3 Aug 2021 22:12:51 +0200 (CEST) Received: from localhost ([::1]:36720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mB0mP-0001u9-Nr for larch@yhetil.org; Tue, 03 Aug 2021 16:12:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB0mG-0001u0-NT for help-guix@gnu.org; Tue, 03 Aug 2021 16:12:40 -0400 Received: from mail-4317.protonmail.ch ([185.70.43.17]:53861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mB0mE-0004LY-5Z for help-guix@gnu.org; Tue, 03 Aug 2021 16:12:40 -0400 Date: Tue, 03 Aug 2021 20:12:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1628021553; bh=OoaENIu991CCn6+jVLJkZyYDoe5D4xd6RPywj2bDJAw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=DTtUeN0qVVw3Q1Bdjgt1Do+RRvKt0V1jgZy8gpdDJoXi5ps6JmDKypqkWSZsCLJ1H 0GfpJyrieY5hRdKvc2lZttZgd++BV8tKH08qylcKimdhctmBVoiKFB17hw6LS7UiKG wvESc2jpuTdX4Sic7XVHDXp03ZZPGufswOvHFe9Y= To: help-guix@gnu.org From: phodina Cc: Elais Player Subject: Re: How to add custom channels to ISO Message-ID: In-Reply-To: <878s1naid0.fsf@fastmail.com> References: <878s1naid0.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=phodina@protonmail.com; helo=mail-4317.protonmail.ch 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, FREEMAIL_FROM=0.001, 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-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: , Reply-To: phodina 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=1628021571; h=from:from:sender:sender:reply-to: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=OoaENIu991CCn6+jVLJkZyYDoe5D4xd6RPywj2bDJAw=; b=iBUOGZSYU61f1Yo5lN4DVFABCBy63DIntPpVeIZ6woKOP/8xjvr0sg7aJTM9zSOGemc6XN AWlIriLUzgs2otKJh3g0zPBvLqEEcpJhLM31WZ3/p02mpMVBnUnQbR5RQfhJAxEWt5JVjs 8n7wyn6Tiz5dPmyvtlnr83AvyfK54hxV9QcZnSG2+B80z4KZV72N1TF7NzUIqBytghE+iO pTwK+j/M1D8q+wdGYutnKqhWGRksy3hp/YxY+Mmk7CxSE2vAXxUwY92O2wyQtxTt4lu4GU iljh38rrQWGLl5+pxBPSlpC3mk7D17qp+X1Yo3WSj6swkgWZZovrrYjkOsZnfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628021571; a=rsa-sha256; cv=none; b=fu2wAIuFbfmImRD8KsoiHhrWncFdB3wKDEhnmp9Exd1khee6TGXpnIvhnwcfFDlraVAfde NVT+f5y3aziR5np8gSLOJLGwNSRrOOBxwmPT1doVxHGSZPg21e7W5uCvNWgYyWXkwp5pjL eCSZ3D05Pu3Cs7ldb4R0KD54Rk4qRvGHz3ae292gOr1X3APaepQROascdbHhAi5DiiuDww lB1lsAGIPGPYP0FE1sIzUrZL0F9ULgPHZ6ym9defQTDngsHgS5Nraes//ekyBrkwX09DIM RMKZti8EvwPgbmfZp3Tju4il0BTgB4GQR7oGxj6rWlKucN8e5nfFUAtbctzvHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=DTtUeN0q; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=DTtUeN0q; dmarc=pass (policy=quarantine) header.from=protonmail.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: ADBF027BD1 X-Spam-Score: -3.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: J82jw/xR/Ger Thanks Elais. This is exactly what I need. Also you're right regarding the ISO running out of space (memory) as I ran = =3Dguix pull=3D once before the store was setup and mounted on the target s= ystem. Also pinning the channels is useful to get "identical" os installed across = the machines. This might be a neat code excerpt and note in the manual perhaps. Would you= agree? Of course, once the system is setup then there is =3Dguix deploy=3D. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, July 30th, 2021 at 6:15 PM, Elais Player wr= ote: > You could add the custom channels file as an > > =3Dextra-special-file=3D1 in the =3Dos-configuration=3D. > > 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 =3Dguix pull=3D 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 =3Dguix pull=3D will start filling > > up your disk or memory on an ISO and you can easily run out of > > space. (I would advise not running =3Dguix pull=3D 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 > > =3D/etc=3D shouldn't matter honestly). > > phodina via help-guix@gnu.org 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