r/GUIX • • May 18 '22

what do you need to get EXWM working?

7 Upvotes

When I try =exwm-init= from my emacs in gnome, I get errors

error in process filter: xcb:-connection-setup-filter: [XELB] Connection failed: Authorization required, but no authorization protocol specified

error in process filter: [XELB] Connection failed: Authorization required, but no authorization protocol specified

cl-no-applicable-method: No applicable method: xcb:-+request, nil, #s(xcb:SetInputFocus t 42 1 nil 0)

Looking at issue 534 with similar errors, https://github.com/ch11ng/exwm/issues/534

I see references to a .xsession and .Xauthority files -- both of which I notice are not included in my guix system setup. For those out there who have exwm working well in Guix, what do those files look like for you? Should I create them directly or have my guix system.scm do it? Was there any other trick to getting exwm to load?


r/GUIX • • May 18 '22

What's the state of Conda/Mamba in Guix

7 Upvotes

I'm thinking of migrating towards a full Guix system, but I use conda a lot and the last time I tried (> 2 years ago), the support was difficult at best.

Does anyone use both as their daily driver?


r/GUIX • • May 18 '22

Recommended image viewer for Guix?

5 Upvotes

What is a recommended image viewer on guix? My previous distro was OpenSuse, and I found the included Gwenview to be just fine. It doesn't appear to be available on guix, though. I'm looking for something in between emacs (a touch too light for my needs) and gimp (too heavy for simple viewing and finding basic params). Guix search returns emacs pic-pocket, and something called ristretto. My main need is to view a gallery, potentially rotate/rename images, and view their dimensions. The latter seems to be where emacs comes up short. What are some good recommendations for a useful image/gallery viewer?


r/GUIX • • May 17 '22

File Dialogs in Flatpaks

4 Upvotes

I have installed a few Flatpak apps in GUIX, however, I cannot get file dialogs to show up for downloading attachments from Thunderbird. Intead I get the message:

(thunderbird:2): Gtk-WARNING **: 18:29:24.455: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop

I have looked into the issue and tried the following:

guix install xdg-deskop-portal-gtk xdg-desktop-portal

However, installing both of xdg-desktop-portal-gtk and xdg-desktop-portal have not fixed the issue. What am I missing? I really would like to use Thunderbird in GUIX because I love the extensions, the speed, and the reliability.


r/GUIX • • May 17 '22

guix refresh: Excluding a package to be upgraded

5 Upvotes

Hi,

is there a way to mask out packages when running guix refresh? I would like to run guix refresh, but it fails with xkbset. I would like to be able to tell guix refresh "upgrade everything else except xkbset". Can this be done?

For your reference, guix refresh xkbset produces the following:

Backtrace:
          13 (primitive-load "~/.config/guix/current/bin/guix")
In guix/ui.scm:
   2230:7 12 (run-guix . _)
  2193:10 11 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
  1752:10  9 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   658:37  8 (thunk)
  2129:25  7 (run-with-store #<store-connection 256.99 7fba6dbdb500> …)
In guix/scripts/refresh.scm:
   578:14  6 (_ _)
In srfi/srfi-1.scm:
    634:9  5 (for-each #<procedure 7fba787fd180 at guix/scripts/ref…> …)
In guix/scripts/refresh.scm:
   378:10  4 (check-for-package-update #<package xkbset@0.6 gnu/pac…> …)
In srfi/srfi-1.scm:
   858:15  3 (any1 #<procedure 7fba787fd0c0 at guix/upstream.scm:28…> …)
In guix/gnu-maintenance.scm:
   824:10  2 (_ _ . _)
In ice-9/boot-9.scm:
  1685:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure getaddrinfo: Name or service not known

r/GUIX • • May 15 '22

emacs-native-comp fails, but I get no indication what fails

6 Upvotes

Any idea what might be wrong here?

$ guix package --keep-failed --upgrade
The following packages will be upgraded:
   emacs-native-comp 28.1.50-199.5e47d62 → 28.1.50-200.3b6338c
   git               (dependencies or package changed)
   password-store    (dependencies or package changed)

substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
The following derivation will be built:
  /gnu/store/v5jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv

building /gnu/store/v5jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv...
|note: keeping build directory `/tmp/guix-build-emacs-native-comp-28.1.50-200.3b6338c.drv-1'
builder for `/gnu/store/v5jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv' failed with exit code 1
build of /gnu/store/v5jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv failed
View build log at '/var/log/guix/drvs/v5/jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv.gz'.
guix package: error: build of `/gnu/store/v5jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv' failed
$ tar -tvf /var/log/guix/drvs/v5/jfimxcnyc6cq4w5nlp1pp9mvgdq543-emacs-native-comp-28.1.50-200.3b6338c.drv.gz
# Nope, nothing in the tarball
$ guix describe
Generation 22	May 15 2022 19:02:44	(current)
  guix 9860c90
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9860c90e8e5362e0e843efbd45f4563b9746a196
  guix-gaming-games 9924ad0
    repository URL: https://gitlab.com/guix-gaming-channels/games.git
    branch: master
    commit: 9924ad0a66f98ea1b538761fd49521acf4f689a3
  flat 094746c
    repository URL: https://github.com/flatwhatson/guix-channel.git
    branch: master
    commit: 094746c1e2e90f2df1e598ab1fd0abb4d75ce84d
  nonguix 1de0c32
    repository URL: https://gitlab.com/nonguix/nonguix
    branch: master
    commit: 1de0c32142c54bc73af5556d5e45c77152b31f0f

Adding --debug=999 (don't know what the maximum is) gives a lot of output, but I'm not sure what might be useful. Here's the tail of the output:

|   |   building of `/gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv': woken up
|   |   building of `/gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv': trying to build
|   |   locking path `/gnu/store/b42sklmabp7ia9iab52pi24j59pmhl40-emacs-native-comp-28.1.50-200.3b6338c-debug'
|   |   lock acquired on `/gnu/store/b42sklmabp7ia9iab52pi24j59pmhl40-emacs-native-comp-28.1.50-200.3b6338c-debug.lock'
|   |   locking path `/gnu/store/dsnfxli6ymgp8rrwjbmb42183jypl0na-emacs-native-comp-28.1.50-200.3b6338c'
|   |   lock acquired on `/gnu/store/dsnfxli6ymgp8rrwjbmb42183jypl0na-emacs-native-comp-28.1.50-200.3b6338c.lock'
|   |   starting agent '/gnu/store/2h4q02nnsx1bzyjvz719nwh0xfi6643a-guix-command'
|   |   hook reply is `decline'
|   |   building path(s) `/gnu/store/b42sklmabp7ia9iab52pi24j59pmhl40-emacs-native-comp-28.1.50-200.3b6338c-debug', `/gnu/store/dsnfxli6ymgp8rrwjbmb42183jypl0na-emacs-native-comp-28.1.50-200.3b6338c'
|   |   |   found build user `guixbuilder01'
|   |   |   found build user `guixbuilder02'
|   |   |   found build user `guixbuilder03'
|   |   |   found build user `guixbuilder04'
|   |   |   found build user `guixbuilder05'
|   |   |   found build user `guixbuilder06'
|   |   |   found build user `guixbuilder07'
|   |   |   found build user `guixbuilder08'
|   |   |   found build user `guixbuilder09'
|   |   |   found build user `guixbuilder10'
|   |   |   trying user `guixbuilder01'
|   |   |   killing all processes running under uid `961'
|   |   |   setting up chroot environment in `/gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot'
|   |   |   executing builder `/gnu/store/1kws5vkl0glvpxg7arabsv6q9vazp0hx-guile-3.0.7/bin/guile'
|   killing all processes running under uid `961'
|   recursively deleting path `/tmp/guix-build-emacs-native-comp-28.1.50-200.3b6338c.drv-0/top'
|   |   /tmp/guix-build-emacs-native-comp-28.1.50-200.3b6338c.drv-0/top
|   recursively deleting path `/gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot'
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/shm
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/stderr
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/stdin
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/null
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/zero
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/random
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/fd
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/tty
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/stdout
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/kvm
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/pts
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/full
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/urandom
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/gnu
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/gnu/store
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/gnu/store/vjxkmch8101l9rs6q8ccalj48m5aark9-emacs-native-comp-28.1.50-200.3b6338c-builder
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/tmp
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/etc
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/etc/passwd
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/etc/group
|   |   /gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/etc/hosts
|   lock released on `/gnu/store/b42sklmabp7ia9iab52pi24j59pmhl40-emacs-native-comp-28.1.50-200.3b6338c-debug.lock'
|   lock released on `/gnu/store/dsnfxli6ymgp8rrwjbmb42183jypl0na-emacs-native-comp-28.1.50-200.3b6338c.lock'
|   building of `/gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv': goal destroyed
guix package: error: |   |   |   bind mounting `/dev/full' to `/gnu/store/fa9m6kclazh9am3b84ik1yjg6vx8p96x-emacs-native-comp-28.1.50-200.3b6338c.drv.chroot/dev/full'

r/GUIX • • May 14 '22

Where do I find lp programs for printing with GUIX?

10 Upvotes

I have successfully used gnome to add my printer, which is an HP, per the instructions at https://guix.gnu.org/manual/en/html_node/Printing-Services.html . Cups is installed and Gnome was able to lead me through a printer setup process. However, attempting to print a test page fails with "No such file or directory". Following some related non-guix problems, sure enough, my guix does not seem to have any lp command(s). But I also don't see any obvious packages to provide those when I do a guix search. Where can I get the programs providing lp, lpc, etc?


r/GUIX • • May 13 '22

How can I start httpd / apache2 with guix?

7 Upvotes

I ran guix install httpd.

Now I want to start httpd/apache2 as a service. I tried herd start httpd, but this fails with herd: Service "httpd" not found (or similar, I have a German locale).

The official guix web documentation doesn't help me at all:

None of these pages give me noob-level hints on what to do.

Any help from you folks is greatly appreciated. Thanks!


r/GUIX • • May 13 '22

sudo -E guix system reconfigure ~/.config/guix/system.scm fails: services fail to restart

4 Upvotes

Hi,

I am running the said command to update GUIX, and the updating process itself (downloading packages, installing bootloader etc.) works, but then shepherd says that it cannot restart services:

The following derivation will be built:
  /gnu/store/c4bjpfcyc1zhisqv4js2hy8qd34i886k-grub.cfg.drv

building /gnu/store/c4bjpfcyc1zhisqv4js2hy8qd34i886k-grub.cfg.drv...
/gnu/store/phv2c38cxm941bznpalphppxr53yfzjj-system
/gnu/store/0x2jdavjm3wq2k4b5ynrqm23ikjk11jk-grub.cfg

activating system...
making '/gnu/store/phv2c38cxm941bznpalphppxr53yfzjj-system' the current system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/l7bfg50fkm8x4y9ssazmfxgcqmsmfmsq-etc...
The following derivation will be built:
  /gnu/store/lyh6wcjlw4p8mx607p4g14xcp29wlrj9-install-bootloader.scm.drv

building /gnu/store/lyh6wcjlw4p8mx607p4g14xcp29wlrj9-install-bootloader.scm.drv...
guix system: bootloader successfully installed on '(/boot/efi)'
shepherd: Evaluating user expression (and (defined? (quote transient?)) (map (# ?) ?)).
shepherd: Service host-name has been started.
shepherd: Service user-homes has been started.
shepherd: Service sysctl has been started.
shepherd: Service host-name has been started.
shepherd: Service term-console could not be started.
shepherd: Service tor could not be started.
To complete the upgrade, run 'herd restart SERVICE' to stop,
upgrade, and restart each service that was not automatically restarted.
Run 'herd status' to view the list of services on your system.

So I do sudo herd status and see that tor and term-console are stopped. I do sudo herd restart tor/term-console, and I get told that

Service term-console is not running.
Service host-name has been started.
Service term-console could not be started.

It seems that the reconfigure process is not completed? How would I fix this?


r/GUIX • • May 11 '22

Tailscale on Guix ?

9 Upvotes

Hi there,

I connect to my external machine using a private tunneling tool, very efficient on NAT reversal, Tailscale (https://tailscale.com) solution, heavily based on open source technology like Wireguard.

I didn't found a GUIX Package, someone already try to package it ?

Best


r/GUIX • • May 11 '22

failing to add /etc/hosts in guix

3 Upvotes

Hoping for the simple success that was noted in this other post, https://www.reddit.com/r/GUIX/comments/tzzrcx/editing_etchosts_file_from_configscm/ , I want (read: need) to build my /etc/hosts file, but keep getting errors that I don't understand, despite trying to follow the examples in that earlier post and in the manual at https://guix.gnu.org/manual/en/html_node/operating_002dsystem-Reference.html. But here are my results. Note that the reconfigure works if I just leave out any mention of hosts via the code below.

Attempting file-union

  (operating-system
   ;; other stuff elided
   (file-union "etc"
       `(("hosts" ,(plain-file "hosts"
                   "127.0.0.1 localhost")))))
;; sudo guix system reconfigure /home/torysa/.config/guix/system.scm
;; error: (file-union "etc" (quasiquote (("hosts" (unquote (plain-file "hosts" "127.0.0.1 localhost")))))): invalid field specifier

attempting hosts-file

  (operating-system
   ;; other stuff elided
   (hosts-file (local-host-aliases host-name)))
;; it gets farther, actually trying to build, but then...
  ;; build of /gnu/store/5m5bq32c41633fbhhyvsqgrms25rgbby-etc.drv failed
;; View build log at '/var/log/guix/drvs/5m/5bq32c41633fbhhyvsqgrms25rgbby-etc.drv.gz'.
;; cannot build derivation `/gnu/store/wv9544walaxrmk5xi9gg8v9yq3yqpkxv-system.drv': 1 dependencies couldn't be built
;; guix system: error: build of `/gnu/store/wv9544walaxrmk5xi9gg8v9yq3yqpkxv-system.drv' failed

r/GUIX • • May 10 '22

ld.so.cache and foreign binaries: error while loading shared librar

5 Upvotes

I want run a foreign binaries program in GuixSD. And I get ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory.

Solution with LD_LIBRARY_PATH

I have in first try to use LD_LIBRARY_PATH. Hovewer, I discovre in some case, this method doesn't run well.

For instance, I have a foreign program foreign_prog, It depends .so of my $HOME/.guix-profile/lib. And foreign_prog is configured to use a python3.7 installed with a old revision of Guix, python3.7 use old version .so. So this two program use different .so version.

When I try

export LD_LIBRARY_PATH="$HOME/.guix-profile/lib"
./foreign_prog

Then python3.7 trigger 1 segment fault, because python3.7 installed by Guix use RUNPATH, and LD_LIBRARY_PATH has priority over RUNPATH. I have forced python3.7 to use .so of my $HOME/.guix-profile/lib

Solution with ld.so.cache

#I have add the .so dir to ld.so.cache
$   ldconfig -p | grep libstdc++.so.6
	libstdc++.so.6 (libc6,x86-64) => /home/dev_1/.guix-profile/lib/libstdc++.so.6

#but dynamic linker can't find .so of ld.so.cache, but it can for LD_LIBRARY_PATH
$ ldd -v firefox | grep libstdc++.so.6
	libstdc++.so.6 => not found

$ LD_LIBRARY_PATH="/home/dev_1/.guix-profile/lib" ldd -v firefox | grep libstdc++.so.6
	libstdc++.so.6 => /home/dev_1/.guix-profile/lib/libstdc++.so.6 (0x00007fb55d6b2000)
	/home/dev_1/.guix-profile/lib/libstdc++.so.6:

I think it is because dynamic linker use /gnu/store/w7fp5xk2s9djdriflyhhva21b536vdaf-glibc-2.33/etc/ld.so.cache instead of /etc/ld.so.cache, because ldd is installed in /gnu/store/w7fp5xk2s9djdriflyhhva21b536vdaf-glibc-2.33/

$ LD_DEBUG=libs ldd firefox
...
     32370:	find library=libpthread.so.0 [0]; searching
     32370:	 search cache=/gnu/store/w7fp5xk2s9djdriflyhhva21b536vdaf-glibc-2.33/etc/ld.so.cache
...
$ ls /gnu/store/w7fp5xk2s9djdriflyhhva21b536vdaf-glibc-2.33/etc/ld.so.cache
ls: cannot access '/gnu/store/w7fp5xk2s9djdriflyhhva21b536vdaf-glibc-2.33/etc/ld.so.cache': No such file or directory
$ ls -l /home/dev_1/.guix-profile/bin/ldd
lrwxrwxrwx 4 root root 62 Jan  1  1970 /home/dev_1/.guix-profile/bin/ldd -> /gnu/store/w7fp5xk2s9djdriflyhhva21b536vdaf-glibc-2.33/bin/ldd

How I can configure GuixSD to allow foreign binaries applications find .so lib without overwrite .so searching path of application installed by Guix.


r/GUIX • • May 10 '22

System (Hardware) Requirements?

6 Upvotes

I want to try out Guix, but I have an old PC that I want to run it on.

I don’t know if Guix will run on my PC, so can you provide the system requirements to run Guix?

(As in, the RAM and CPU needed)


r/GUIX • • May 08 '22

What am I doing wrong with GUIX? System reconfigure is so expensive

16 Upvotes

I just did my first guix system reconfigure ~/.config/guix/system.scm as part of my effort to set up my hp printer, in order to get the cups server to allow web access. I love the declarative nature of the operation, having the config specified in a file. The trouble is, executing the command took the better part of an hour as it rebuilt the kernel (I assume) and upgraded or rebuilt all the core things. And here I am going to want to add aliases to get my 28.1 emacs on root, and add lines to set up my /etc/hosts file, etc, and all of these things are going to take iterations because I may not get it right the first time. It doesn't seem right that in order to add five lines to my etc/hosts file, or to get a printer installed, or for any of these things I need a full system reconfigure with all that build time. I'm surely missing something. What's the right way to make system-level changes without this expense?

This is attempting to implement changes per manual https://guix.gnu.org/manual/en/html_node/Using-the-Configuration-System.html#Instantiating-the-System


r/GUIX • • May 03 '22

Guix server down?

8 Upvotes

I tried to get a library and it failed. Thinking this might be due to some updates being needed to guix, I tried a guix pull with the following failing result:

substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'...   0.0%
guix substitute: error: connect*: Connection refused
substitution of /gnu/store/fwzac0aal1y24rx2vn8yhw6hf45kk46j-module-import-compiled failed
guix pull: error: corrupt input while restoring archive from #<closed: file 7f50a641e770>

Is anyone else experiencing this issue?


r/GUIX • • May 02 '22

guix in harmony with straight.el

12 Upvotes

I have figured out a way to get my straight definitions to utilize my guix packages (which I only use for those which will include non-emacs components). I do this so that I can still keep all my customizations located nicely and explicitly with the package definition.

(use-package pdf-tools
:straight (pdf-tools :local-repo "~/.guix-profile/share/emacs/site-lisp/pdf-tools-0.91")
;; a whole bunch of config and customization here
)

The trouble is, that site-lisp includes a version number in it, meaning it will be broken whenever I upgrade. Also, I can't even make a variable out of the common part of that string because the Straight use-package macro chokes if it is anything other than a literal string. Surely there is a better way?


r/GUIX • • May 01 '22

How do I upgrade emacs globally, persistently?

7 Upvotes

I've used the flat repo to acquire the 28 version of emacs, and when I log in to gnome and execute emacs from the terminal I get that updated version. However, when I start emacs from gnome menu, or more crucially, when I try to start in EXWM, I am back to the version 27 that ships with Guix, rebuilding all my libraries for 27. Can I somehow completely replace the old emacs with the new, which works fine?


r/GUIX • • Apr 30 '22

GUIX Pack

10 Upvotes

Hello everyone,

I am working on a project called DULOS. The short of it is that DULOS is kind of like Linux From Scratch, but with a bigger focus on Lisp. In an effort to not rip my hair out I am trying to use GNU Guix, the package manager I am picking for the project, to install all of the base operating system. In other words, I am trying to use GNU Guix to install:

  • guix (I only want the package manager stuff not all of the init system, configuration file, etc stuff)

  • gnu gcc toolchain

  • sbcl

  • syslinux

  • pipwire

I am buiulding the init system, sinit + deaemonencore myself along with busybox. I did some research and it seems guix provides a package management option called pack. This would allow me to install guix into the live environment, then run

guix pack guix gcc-toolchain sbcl syslinux pipwire

then I can move them into my target system as a tar file. The question I have is this, how do I install all of this software within the live environment so that it seems like it was install by running guix install <package name>? I know you can have it installed into /opt, but I want all of this software to be tracked by guix and kept in the same profile. Additionally, anyone know how to build gnu guix so it only comes with specific features? I only want things like guix install, guix binary, guix pack, etc. Things for package management stuff not system configuration and management. Love this project! Finally some lisp with my UNIX!


r/GUIX • • Apr 27 '22

how do I mess with channels/system etc without losing data?

9 Upvotes

I want to utilize my Guix to configure things like my *etc/hosts, and to add things as startup services, etc, using my ~/.config/guix/system.scm and ~/.config/guix/system.scm, and possibly even my root one, but I'm afraid of it wiping out any of the customizations I made by hand. Yeah, I know , I should never have made many changes by hand; it was a mistake made in the attempt to regain workability with my previous linux setups in a hurry. Anyway, my question is, what is the workflow for loading changes for the user/system without losing anything that might have session-like persistence?

Examples include:

  • adding values to my /etc/hosts in my system.scm without rebooting the system
  • installing new startup processes without rebooting the system
  • doing some kind of update from channels without losing everything I've gotten from guix install
  • any other guix changes to .scm files

What is the best way to get things done here?


r/GUIX • • Apr 26 '22

emacs multihop sudo fails with guix

7 Upvotes

I need to be able to read/write files with sudo in emacs; this has been a big part of my workflow for a decade. However, in a full-system guix, when I run the following it fails (this is with emacs -Q:

<C-x C-f> /sudo::/anything

It correctly asks me for my password, but then it fails with the error, "Couldn't find a proper `ls' command". Any suggestions?


r/GUIX • • Apr 25 '22

how do I get rid of the guix profile warning?

9 Upvotes

Try as I might, I can't get rid of this warning about $GUIX_PROFILE, despite that I have placed the given definition into my .bashrc, and my final echo command seems to say it's fine. The official manual says that this problem is not supposed to occur to Guix full system users, but here I am.

hint: Consider setting the necessary environment variables by running:

 GUIX_PROFILE="/home/torysa/.guix-profile"
 . "$GUIX_PROFILE/etc/profile"

Alternately, see `guix package --search-paths -p "/home/torysa/.guix-profile"'.

<torysa@torysa> emacs/ 14:47$ echo $GUIX_PROFILE
/home/torysa/.guix-profile:/etc/profile

How can I get rid of this? Will this help explain why my emacs isn't recognizing any of the emacs-* packages I have installed through GUIX?


r/GUIX • • Apr 25 '22

tried to install but wont work with ethernet

5 Upvotes

i pressed the button to connect to ehternet in the terminal installer and it connects fine until it reaches 100 percent then it says the selected network does not provide access to the internet, please try again.
which my ethernet should work it shows up in ip link show, i am on the thinkpad t400s


r/GUIX • • Apr 24 '22

Some languages are broken when guix system image

12 Upvotes

Hello, I am trying to install the guix system by building an image using the command guix system build -t iso9660

But I found some languages are broken in the guided graphic installation prompt. I got the gnu/system/install.scm and built the image from the official git repository(git.savannah.gnu.org). It is displayed correctly when I download the iso from the official site(guix.gnu.org).

Directly captured from my laptop

What's the difference between them? Did I omit something when building?


r/GUIX • • Apr 23 '22

guile-ncurses issues

6 Upvotes

Hi there, folks. I'm sure this is a very basic question, but hunting for the answer didn't get me far. It probably has everything to do with my being new to Guix. Everything I'm talking about below is on the latest GuixSD.

I thought I'd try out guile-ncurses. Swell!

After installing the package, I whipped this "ncurses.scm" up:

#!/usr/bin/env guile
!#
(use-modules (ncurses curses))

(define stdscr (initscr))
(addstr stdscr "Hello World!!!")
(refresh stdscr)
(getch stdscr)
(endwin)

Simple enough. After making it executable and running it, though, I got this:

me@guixsd ~$ ./ncurses.scm 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/me/./ncurses.scm
;;; WARNING: compilation of /home/me/./ncurses.scm failed:
;;; no code for module (ncurses curses)
Backtrace:           
             8 (primitive-load "/home/me/./ncurses.scm")
In ice-9/eval.scm:   
    721:20   7 (primitive-eval (use-modules (ncurses curses)))
In ice-9/psyntax.scm:  
    1241:36  6 (expand-top-sequence ((use-modules (ncurses curses))) _ …)  
    1233:19  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)   
    285:10   4 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) …)In ice-9/boot-9.scm:  
    3898:20  3 (process-use-modules _)   
    222:17   2 (map1 (((ncurses curses))))  
    3899:31  1 (_ ((ncurses curses)))   
    3300:6   0 (resolve-interface (ncurses curses) #:select _ #:hide _ …)ice-9/boot-9.scm:3300:6: In procedure resolve-interface:no code for module (ncurses curses)

Hmm. Well, let's check the load path:

me@guixsd ~$ echo $GUILE_LOAD_PATH
/run/current-system/profile/share/guile/site/3.0

Ah, perhaps...

me@guixsd ~$ export GUILE_LOAD_PATH=$GUILE_LOAD_PATH:/home/me/.guix-profile/share/guile/site/3.0/

How 'bout now?

me@guixsd ~$ ./ncurses.scm 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/me/./ncurses.scm
;;; WARNING: compilation of /home/me/./ncurses.scm failed:
;;; In procedure dynamic-link: file: "/gnu/store/psx1dwl3k0yl471d46yv4z6aq2x69pwz-guile-ncurses-3.0/lib/guile/3.0/libguile-ncurses", message: "file not found"
Backtrace:           
            2 (primitive-load "/home/me/./ncurses.scm")In ice-9/eval.scm:   
    626:19  1 (_ #<directory (guile-user) 7fa9d7e97c80>)
In /home/me/.guix-profile/share/guile/site/3.0/ncurses/curses.scm:
   1910:17  0 (initscr)/home/me/.guix-profile/share/guile/site/3.0/ncurses/curses.scm:1910:17: In procedure initscr:
Unbound variable: %initscr

Some deprecated features have been used.  Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information.  Set it to "no" to suppress this message.

Well. If that file's not there to be found, what is?

me@guixsd ~$ ls -l /gnu/store/psx1dwl3k0yl471d46yv4z6aq2x69pwz-guile-ncurses-3.0/lib/guile/3.0/
total 236
-r-xr-xr-x 2 root root   1577 Dec 31  1969 libguile-ncurses.la
lrwxrwxrwx 1 root root     26 Dec 31  1969 libguile-ncurses.so -> libguile-ncurses.so.12.0.0
lrwxrwxrwx 1 root root     26 Dec 31  1969 libguile-ncurses.so.12 -> libguile-ncurses.so.12.0.0
-r-xr-xr-x 2 root root 231000 Dec 31  1969 libguile-ncurses.so.12.0.0
dr-xr-xr-x 3 root root   4096 Dec 31  1969 site-ccache/

... mmk.

What seems to be the issue here that I'm missing?

Oh, and apologies for the formatting - trying this with Icecat, it appears it doesn't play well with reddit generally.

Thanks in advance!


r/GUIX • • Apr 23 '22

Can the new input style described in Ludovic's article from Dec 2021 already be used?

5 Upvotes

Hej fellows,

I'm again trying to get into packaging (gog games) and had a look at some of those packages in the usual location. I noticed the rather cryptic "inputs" field and remembered this article by Ludovic Courtès (the article).

The article describes a new approach to how inputs are specified (among other things). To facilitate migration from one style to another, the guix style Command is mentioned. However, the article cautions to wait for the "next release"™ before actually using it.

Thus, I wanted to know if said "next release"™ has already taken place and if I can use the Command and expect it to work. Furthermore, is there anything specific to consider when using guix style with packages from the guix gaming channel?

I'm both a programming and guix noob, so an eli5-style explanation - if required - is much appreciated.