From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 3tPOF77Vx2bJowAAqHPOHw:P1 (envelope-from ) for ; Fri, 23 Aug 2024 00:20:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 3tPOF77Vx2bJowAAqHPOHw (envelope-from ) for ; Fri, 23 Aug 2024 02:20:14 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=In4KuIil; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="S res7gE"; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724372413; 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=gYmk1cu9OyCwMfeWk5hto1bG4b1kEHS4nVbBBzVfgxg=; b=Wy5PD73mjaEnMBzqi3bUkU97s4Zy/kB5BpQrWmaupmb9jwVHvKAqKGRA678Tcd3t5EO7b1 DKQhxuLZEG0L9abpTk9KjjKUkQ+MzBNvfCl4HJtX9oRyqxKCc/VdQL+7+UmhrUS/rLx3jK j9/Zky6pK/irI2ofhzOrCcF5etZXXCpKuueFnA2r2yE1f5iQtSvA+IMFEuWPJSLSxzVrPM G1WI/Mr7i/35Du1bIeNivUUkEDMgFln5e/Hpdp7DuF6fHXhT5Z4wbpRPb0BxBSaPy/s6wS PIHzKsatM1hZX2lqhU1nOwT98l66M9zsosKh38HqQL9UFNGkQp1EbZBJdclfOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=In4KuIil; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="S res7gE"; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724372413; a=rsa-sha256; cv=none; b=V46t/QvQ5dZNXJHYLdylHSVZUpSyev6HBf8J/4Xg7DyQ75hThHK8zwPZFeSGeztbuGbX56 002PYPF1ydu89aVJnBwcqDTm7h7bduqW/ljnhPB8vxtwfhX4oQ13l5IQolJqmlv33Yt/0w y4zuN5cfNq1LmxLiyW12D6ngys7TsB5cn5Ayn4Nz/1RzsEit7AQQoMCrc/3JkOw+b1a4Er cPnl3dtJWQ04c5LvHlEGZmZgB7qghpUObvk4yQ6qrjBzVWlVZNC5KTfWQGJCjEg8nEkz6h HYSmpJPbXYhWwBz/vDzkDs3DA9qhq15H0kGY45Rr1Tjct4EkXXNs6oP9CWacfg== 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 396F53D00A for ; Fri, 23 Aug 2024 02:20:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shI1d-0006Ce-0H; Thu, 22 Aug 2024 20:19:33 -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 1shI1b-0006CW-Qu for help-guix@gnu.org; Thu, 22 Aug 2024 20:19:32 -0400 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shI1Z-0004Nw-Kp for help-guix@gnu.org; Thu, 22 Aug 2024 20:19:31 -0400 Received: from phl-compute-05.internal (phl-compute-05.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 314A31151B00; Thu, 22 Aug 2024 20:19:28 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Thu, 22 Aug 2024 20:19:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1724372368; x=1724458768; bh=gYmk1cu9OyCwMfeWk5hto1bG4b1kEHS4nVbBBzVfgxg=; b= In4KuIilBoy8HBEIbFIyMeKV/+5sJV453en2gjAWI3P0TD0oCLj8Ucpq+V1hDpn8 JCl4D6NGWVrqIAjNaGluCy4GOvmAngAk0p1OmoVmABeYuswCjk9tlWDgi8/TbtIe +AVTI6HpDo1lxv40km6U5kl2kEpZuYD630+NFkRE2D+i+I22nzg+eg0lEFsSGNtw TjFfyRUz6hbWREXDkFbjgtz1bJNkz0zir+NWVCdKpKuryPPbwlsZFEQdo+VBhq9p sx0HG69EuTVN1zS4G4jFSTRJDLs8liO5vBnAmyUl7M/YZkp2hKpEAwjFLx0dStX3 eQGJYpJJQXsN+i2yTPCJbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724372368; x= 1724458768; bh=gYmk1cu9OyCwMfeWk5hto1bG4b1kEHS4nVbBBzVfgxg=; b=S res7gEXIMFucRw4Ybfo7+teXH4/0QrGyv3IRX7acuwm1nA2UX10ShZ/qzLPqqUMR G+QKN9/1R8zKMN9khQs7hw5tOXUGb5l00D02S0ZTcgT2fBGf8tidDPofybpBIuW1 OQsL6RTdlTK/O5dGbNX1LKk8QimlDx/dsU0TwYyWfn0IaXieO9wopfT98AHPlA/y 0AtWsKSqyXFFWg0GLsojakLTxTFDpOREsfIDnDBF+ZbnfKhxrEKnCaa4S6A+erLr 57EqkTklOywxqt61M6MJ0RHkwQ7fNra0RWMMk6LdwAQkts96cad69cSP8JKr0EiR lFeyz/63i/ZIkDBB4HFlw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvuddgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvf evufffjgfkgggtgfesthhqredttderjeenucfhrhhomhepkfgrnhcugfhurhgvuceoihgr nhesrhgvthhrohhsphgvtgdrthhvqeenucggtffrrghtthgvrhhnpeelvddtveekteeife eufeegtdduhfdthfekgedvkeeuudetvdeuieegfedtgffghfenucffohhmrghinheptgho uggvsggvrhhgrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtgdrthhvpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehhvghlphdqghhuihigsehgnhhurd horhhgpdhrtghpthhtohepmiesfiholhhfshguvghnrdgtii X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Aug 2024 20:19:27 -0400 (EDT) References: <87ed6i27lm.fsf@wolfsden.cz> User-agent: mu4e 1.8.13; emacs 28.2 From: Ian Eure To: Tomas Volf <~@wolfsden.cz> Cc: help-guix@gnu.org Subject: Re: How to have guile module available during sudo system reconfigure? Date: Thu, 22 Aug 2024 17:14:56 -0700 In-reply-to: <87ed6i27lm.fsf@wolfsden.cz> Message-ID: <87frqw2ir6.fsf@meson> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.155; envelope-from=ian@retrospec.tv; helo=fhigh4-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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Queue-Id: 396F53D00A X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.65 X-Spam-Score: -8.65 X-TUID: F7r//jEGGYBs Hi Tomas, Tomas Volf <~@wolfsden.cz> writes: > [[PGP Signed Part:Undecided]] > > Hello Guix, > > I did run into an interesting (frustrating?) problem. I created=20 > a > package that bundles few Guile modules of my making. I=20 > installed it > into my home environment and wanted to use helpers from it in my=20 > system > configuration. However I am not sure how to do that. > > When I do > > guix system build some/config.scm > > > The system builds and everything is fine. > > However when try to reconfigure the system using > > sudo guix system reconfigure some/config.scm > > > It fails with a very descriptive error of > > ice-9/eval.scm:142:16: In procedure compile-top-call: > error: system-add-luks: unbound variable > hint: Did you forget `(use-modules (wolfsnet systems))'? > > I managed to track it down to module from my package not being > importable. Since I have it in my home environment, all=20 > non-sudo > commands work, however when I add in the sudo to actually=20 > install the > new system it does not find it. > > I am not sure what to do about this. I have tried to install=20 > the > package into system, but that does not seem to have any effect. > > -E flag to sudo was suggested on IRC, and that works, however > documentation does not use it so I am bit scared of various site > effects it could have. > > Does anyone know how to approach this? > If you have a personal Guix channel, any Guile code in it gets=20 added to your load path. I use this to include helpers which ease=20 both system and home configurations, ex. this code for helping=20 with offloading builds[1], or home services to launch=20 jellyfin-mpv-shim[2] when I log in. Perhaps the same setup would work for you, too. Thanks, =E2=80=94 Ian [1]:=20 https://codeberg.org/ieure/atomized-guix/src/branch/main/atomized/system/of= fload.scm [2]:=20 https://codeberg.org/ieure/atomized-guix/src/branch/main/atomized/home/serv= ices/media.scm