From: "André Batista" <nandre@riseup.net>
To: help-guix@gnu.org
Subject: Re: How to have guile module available during sudo system reconfigure?
Date: Thu, 22 Aug 2024 17:30:15 -0300 [thread overview]
Message-ID: <ZsefHURzgoeI6tms@andel> (raw)
In-Reply-To: <87ed6i27lm.fsf@wolfsden.cz>
Hi Tomas,
ter 20 ago 2024 às 23:43:33 (1724208213), ~@wolfsden.cz enviou:
>
> Hello Guix,
>
> I did run into an interesting (frustrating?) problem. I created a
> package that bundles few Guile modules of my making. I installed it
> into my home environment and wanted to use helpers from it in my system
> configuration. However I am not sure how to do that.
>
> When I do
>
> --8<---------------cut here---------------start------------->8---
> guix system build some/config.scm
> --8<---------------cut here---------------end--------------->8---
>
> The system builds and everything is fine.
>
> However when try to reconfigure the system using
>
> --8<---------------cut here---------------start------------->8---
> sudo guix system reconfigure some/config.scm
> --8<---------------cut here---------------end--------------->8---
>
> It fails with a very descriptive error of
>
> --8<---------------cut here---------------start------------->8---
> 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))'?
> --8<---------------cut here---------------end--------------->8---
>
I've never done that, but have you tried setting GUILE_LOAD_PATH?
$ sudo GUILE_LOAD_PATH="myguile/modules:$GUILE_LOAD_PATH" guix system reconfigure some/config.scm
Cheers,
next prev parent reply other threads:[~2024-08-22 20:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 21:43 How to have guile module available during sudo system reconfigure? Tomas Volf
2024-08-21 7:25 ` Marek Paśnikowski
2024-08-22 20:30 ` André Batista [this message]
2024-08-23 0:14 ` Ian Eure
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZsefHURzgoeI6tms@andel \
--to=nandre@riseup.net \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).