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 <m...@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 via email to