Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrapping channels #7

Open
elais opened this issue Jul 5, 2021 · 2 comments
Open

Bootstrapping channels #7

elais opened this issue Jul 5, 2021 · 2 comments

Comments

@elais
Copy link

elais commented Jul 5, 2021

Right now channels.scm is getting added to /etc/channels.scm which is the wrong location for channels to be recognized IIRC. the correct path is /etc/guix/channels.scm and these can be added like so

(define %guix-channels
  (scheme-file
   "channels.scm"
   #~(cons* (channel
             (name 'nonguix)
             (url "https://gitlab.com/nonguix/nonguix")
             (introduction
              (make-channel-introduction
               "897c1a470da759236cc11798f4e0a5f7d4d59fbc"
               (openpgp-fingerprint
                "2A39 3FFF 68F4 EF7A 3D29  12AF 6F51 20A0 22FB B2D5"))))
            %default-channels)))
...
(services
     (cons*
      ;; Include the channel file so that it can be used during installation
      (extra-special-file "/etc/guix/channels.scm" %guix-channels)
      (operating-system-user-services installation-os)))

Doing it this way eliminates the need for a few lines of bash script or managing a separate channels file. More importantly it adds system-wide guix channels to the correct directory.

@daviwil
Copy link
Member

daviwil commented Jul 6, 2021

Thanks! Yeah, I wasn't intending for Guix to pick it up from that location, it was just a convenient place to stash the pinned channel file so that it could be used with guix time-machine for the initial installation process and ensure that newer package derivations aren't used (to avoid rebuilding the non-free Linux kernel).

I wonder if I can avoid the guix time-machine step I provided in the installation video if I put the channel file in the right place? I suppose you'd still need to run guix pull first.

@elais
Copy link
Author

elais commented Jul 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants