From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 2KJILezPImZpPAEAqHPOHw:P1 (envelope-from ) for ; Fri, 19 Apr 2024 22:11:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2KJILezPImZpPAEAqHPOHw (envelope-from ) for ; Fri, 19 Apr 2024 22:11:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VLrTLxZE; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713557484; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=BvVujhWyo9Tc7OLvoDZ4i8P8oJnU+hGp9xRQ/Iu2f7U=; b=QTkINjfSeB8ydHNGYSiPNQif77a+xsDFsyNks59bebYSdJ28MOe0Ytz+Zu50TvANHzcRHZ pYBzEjZTsvEBVuRsVs0h/Wdof5gtqTenqTRc1XqJgrmO2h0gTy69lRxZR0tSMHZOp/I006 dKM9NVajCxpltXIoKTJIVMT69IMk3SwMQK/H2p1pdAaLuHV5FvsP7FMBnY9cpsMiffyR0b pBQu6HfRTS/mOQnIl25dCwkLPoYf0o1WD3KN5GFKPYJLKBq1JtUZ/Y0dWMc/h7GsmEkjBd X904NWl+xW6bGiWHIX/DZgDpTvlf0LMrYQhAyk+533RFbALudRf9NzZdxuM+yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713557484; a=rsa-sha256; cv=none; b=osz+xlsIOPpdBd8vWNBkhAdWzhW1Gw6JF7px7mWfpNJ+wsy3BOFzxGd896NAYGklc038c/ b3vwAqPUP18y3VZ8EQf5oL7fnVRNHHCf/3iDDPuen2HI9XGO4dRIZApp0VkiyUqHFlN+z6 dp8VuD3yQ7Yn/sZYQRFy8O+Zm2PPeW0n5YAiR6vyQVMr7yHI5jiMZ/x1LuyGG83EJP1jRQ 7ZzD854cOxOGPusPjUOZCzjrFIThlsNJRKozNuKYobxsDYqlfwoRTZ6IxEo5oeh982RfsB OgC2K8PNy5b+egFfyZ145wWOyFWgCwt3MVH34iIbThfE+qjovz3D4oexoH784Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VLrTLxZE; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=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 973F1232DB for ; Fri, 19 Apr 2024 22:11:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxuZP-00070a-1S; Fri, 19 Apr 2024 16:10:51 -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 1rxuZL-00070Q-Jp for guix-devel@gnu.org; Fri, 19 Apr 2024 16:10:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxuZL-00080P-3g for guix-devel@gnu.org; Fri, 19 Apr 2024 16:10:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BvVujhWyo9Tc7OLvoDZ4i8P8oJnU+hGp9xRQ/Iu2f7U=; b=VLrTLxZEnegqDIoUCiws sxuzZt/VSZZNk0SK39jAYgUPX17K6QEDK9P+XVEmrNIHPJDlWket1bCj8+n31vToNZYtZ3ueK7qEm R30S/uWuAoVImYmhNkeEZ4oKGA3El4qmw5xT9ww2pCAjsTw4L46eqUtoN9yQ2tP/G9Nd7ffTA2qWf 8GZly/tK88Ipnr4CViaB4oF+jrxWMGikhz1LYSLE9hgvFD1BAnROEROTbObQchx4T7Lx6wmnLW49z bn3fYJXeQCpWAD146E03hgc3apUgE8tqqlYNVXM9h0MRlHo/7ccWDDtagB2pxkDQdho+K353qfD99 r5MtYYfG8J/SZw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel@gnu.org Subject: Re: The `channels' field of `operating-system' record In-Reply-To: (Tomas Volf's message of "Tue, 16 Apr 2024 00:04:30 +0200") References: <87y19li6wo.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 1 =?utf-8?Q?Flor=C3=A9al?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la Rose X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 19 Apr 2024 22:10:34 +0200 Message-ID: <874jbxdsg5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.15 X-Spam-Score: -11.15 X-Migadu-Queue-Id: 973F1232DB X-Migadu-Scanner: mx12.migadu.com X-TUID: GNg8N4vKX5It Hi, Tomas Volf <~@wolfsden.cz> skribis: > On 2024-04-10 17:17:27 +0200, Ludovic Court=C3=A8s wrote: [...] >> Yes, why is that? At first sight, that=E2=80=99s because =E2=80=98extra= -special-file=E2=80=99 >> does things at activation time; there=E2=80=99s no check happening at >> configuration time. >> >> It was really meant for /bin/sh, /usr/bin/env, and similar. The reason >> its effect is silently dismissed in this case is, I think, because its >> activation runs before the /etc activation. So it=E2=80=99s really bad = luck. >> >> I=E2=80=99m not sure what to do here, apart from maybe recommending agai= nst >> broad use of this service. > > I will re-phrase the above into a documentation patch. Great. >> That would be: (guix-configuration =E2=80=A6 (channels (load "channels.s= cm"))). > > That does not seems to work, I am getting this error: > > /tmp $ guix system build os.scm > ;;; compiling /tmp/channels.scm > ;;; /tmp/channels.scm:1:7: warning: possibly unbound variable `channe= l' [...] > But after some experimentation (and looking into pull.scm), it seems what= I need > is this: > > (use-modules (guix ui)) > (use-modules (guix channels)) > > and > > (channels (load* "channels.scm" > (make-user-module '((guix channels))))) Or simpler: use (guix channels) in your OS config so you can use (load "channels.scm"). (=E2=80=98load=E2=80=99 evaluates code in the current module.) > Maybe it would be best to extract (load-channels) from pull.scm into > guix/channels.scm, exporting it? (Since for example the above is missing= error > checking code from (load-channels)). Yes, good idea, we can do that. Thanks for your feedback! Ludo=E2=80=99.