all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy Washington <twashing@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: Access to nongnu channel
Date: Mon, 2 Dec 2024 09:58:31 -0500	[thread overview]
Message-ID: <CAADtM-bG1OVv3u9sy4-u2iwG78+PC5iMMz_uiSeC6X9PALaujw@mail.gmail.com> (raw)
In-Reply-To: <2BAE79B2-2C7E-4B6D-977E-8A96B93D83AF@tobias.gr>

That's interesting. Thanks for your feedback. Using sudo in both
invocations, does a successful "guix pull". But has the same failure on
"guix system reconfigure".

$ sudo guix pull
...

$ sudo guix system reconfigure system.scm
guix system: error: failed to load 'system.scm':
ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (nongnu packages linux)


But then calling "guix pull" without sudo, fails

$ guix pull
...

$ guix system reconfigure system.scm
guix system: error: failed to load 'system.scm':
ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (nongnu packages linux)


=> However, I seem to get further along when I specify "channels.scm".
After adding "(guix profiles)" to the "use-modules" in system.scm...

(use-modules (gnu)
             (nongnu packages linux)
             (guix profiles))


I get a bit further, where guix can't find another form... *Which package
has "manifest->packages" ?*

$ guix pull --channels=channels.scm
...

$ guix system reconfigure system.scm
/home/twashing/dotfiles/system.scm:36:6: error: manifest->packages: unbound
variable
hint: Did you forget a `use-modules' form?


NOTE: Updated system.scm

(use-modules (gnu)
             (nongnu packages linux)
             (guix profiles))

(use-service-modules
  cups
  desktop
  networking
  ssh
  xorg)

(load "guix/fonts.scm")

(operating-system
  (kernel linux)
  (firmware (list linux-firmware))
  (locale "en_US.utf8")
  (timezone "America/New_York")
  (keyboard-layout (keyboard-layout "us"))
  (host-name "guix")
  (users (cons* (user-account
                  (name "twashing")
                  (comment "twashing")
                  (group "users")
                  (home-directory "/home/twashing")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video")))
                %base-user-accounts))

  (packages

   (append

     (list (specification->package "nss-certs"))

     (manifest->packages
      (specifications->manifest
       '("gcc-toolchain"
         "make"
         "git"
         "emacs"
         "vim"
         "tree"
         "ungoogled-chromium"
         "the-silver-searcher"
         "ripgrep")))

     (manifest->packages
        (packages->manifest
          (list font-iosevka)))
     %base-packages ))

  (services
    (append
      (list (service gnome-desktop-service-type)
            (service xfce-desktop-service-type)
            (service openssh-service-type)
            (service tor-service-type)
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout))))
      %desktop-services))
  (bootloader
    (bootloader-configuration
      (bootloader grub-efi-bootloader)
      (targets (list "/boot/efi"))
      (keyboard-layout keyboard-layout)))
  (swap-devices
    (list (swap-space
            (target
              (uuid "e5f1a4a1-f2fd-4e7e-8ec7-05abcd4d70f3")))))
  (file-systems
    (cons* (file-system
             (mount-point "/boot/efi")
             (device (uuid "E6AE-7A56" 'fat32))
             (type "vfat"))
           (file-system
             (mount-point "/")
             (device
               (uuid "e67e1014-9dfe-4b14-a113-ce9c56f963bf"
                     'ext4))
             (type "ext4"))
           %base-file-systems)))

Tim Washington
Interruptsoftware.com <http://interruptsoftware.com>
(647) 283-2856


On Mon, 2 Dec 2024 at 01:53, Tobias Geerinckx-Rice <me@tobias.gr> wrote:

> Hi Timothy,
>
> Is the 'guix' being invoked with 'sudo' the one created by 'guix pull'
> (~/.config/guix/current/bin/guix)?  I suspect it isn't.
>
> You can verify with
>
>   $ sudo guix describe
>
> and
>
>   $ sudo which guix
>
> ('which' is often not the best answer to 'which binary will run?', but
> here it is.)
>
> If 'sudo' is invoking a different 'guix' than the one in your user's PATH,
> you need to configure it to do so or explicitly use
>
>   $ sudo -E guix system reconfigure …
>
> IIRC.  YMMV.  CYA.  IANAL.
>
> Kind regards,
>
> T G-R
>
> Sent on the go.  Excuse or enjoy my brevity.
>

      reply	other threads:[~2024-12-02 14:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  6:10 Access to nongnu channel Timothy Washington
2024-12-02  6:53 ` Tobias Geerinckx-Rice
2024-12-02 14:58   ` Timothy Washington [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAADtM-bG1OVv3u9sy4-u2iwG78+PC5iMMz_uiSeC6X9PALaujw@mail.gmail.com \
    --to=twashing@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.