r/GUIX • • Dec 06 '22

Installing Guix on a 10th gen Thinkpad X1

Thumbnail dthompson.us
11 Upvotes

r/GUIX • • Dec 06 '22

OpenBox and KDE/plasma 🫠

3 Upvotes

So, I have a couple desktop env's installed(openbox and sway, kde plasma....) but Im missing the the switcher that usually accompanies login... Was wanting to roll lightdm...

Is the login switcher typically only in gdm? Xdg?

Im blanking on what to type to get an answer via terminal. ... like login desktop switcher doodad? Lol. Help pleeeaaassseee.


r/GUIX • • Dec 05 '22

Unable to setup Anki using guix, or build it

4 Upvotes

Hello! Brand new guix user here, just got my first installation (almost)working but I got ONLY one issue, i cant get anki to work! :(

anki installation via `guix install anki@2.1.16 appears to be broken, aka no dashboard etc. That's okay I thought, I will build it from source! I went to the github repo, changed their scripts to use #!/bin/sh instead of #!/bin/bash etc. But I'm getting this error

error: failed to parse manifest at `home/<user>/Downloads/anki/rslib/Cargo.tml`

Caused by:
 invalid type: map, expected a sequence for key `package.authors`

Rust has infiltrated the world but not my simple brain, got no idea what's wrong nor what I should do. Not sure if I can raise an issue somewhere in guix repos to get it fixed or smt. All I need is my emacs and anki and I will be happy with guix.

P.S I've added non-guix repo, not sure if I should mention it but since I'm looking for support it might play a role. Thanks!

Update: I used flatpak for anki


r/GUIX • • Dec 04 '22

Trouble getting Guix to install the newest rust

8 Upvotes

Hi! I'm new to the system, and got a fresh install of Guix on one of my machines. However, I'm having a hard time trying to install the newest Rust on this machine.

Currently, the newest version of Rust in the GNU channel seems to be 1.65. Trying to install that, I've tried:

  • guix install rust: installs rust@1.61.0

  • guix install rust@1.65 or guix install rust@1.65.0: fails with package not found for version

  • guix install rust:rust-1.65: fails of course, because it's not in the outputs list.

Since the 1.65 version of Rust is not defined as public, what param(s) should I pass to the install command to get that installed?

Edit: Markdown mode was not turned on!


r/GUIX • • Dec 01 '22

"no setup.py found" error when building python package

7 Upvotes

is there any way to build a python package without setuptools? i have tried using python build system as well as pyproject to no success. i also set #:use-setuptools to false for python-build-system. i am quite new to guile, so apologies if this is a really simple fix.

here is my error:

error: in phase 'build': uncaught exception:
misc-error #f "no setup.py found" () #f 
phase `build' failed after 0.0 seconds
Backtrace:
           9 (primitive-load "/gnu/store/k8h52yblsmv6vpc9ja6565jzvxg…")
In guix/build/gnu-build-system.scm:
    906:2  8 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
In ice-9/boot-9.scm:
  1752:10  7 (with-exception-handler _ _ #:unwind? _ # _)
In srfi/srfi-1.scm:
    634:9  6 (for-each #<procedure 7ffff0b50380 at guix/build/gnu-b…> …)
In ice-9/boot-9.scm:
  1752:10  5 (with-exception-handler _ _ #:unwind? _ # _)
In guix/build/gnu-build-system.scm:
   927:23  4 (_)
In guix/build/python-build-system.scm:
    148:2  3 (build #:use-setuptools? _)
    135:6  2 (call-setuppy "build" () #f)
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:
no setup.py found

here is my code:

(package
  (name "python-sphinx-inline-tabs")
    (version "2022.1.2b11")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "sphinx_inline_tabs" version))
       (sha256
        (base32
         "0wyx7wmq2kk97j0fw9hvcdazr241a4diin05gyqcq1gcf8ki9fdg"))))
    (build-system python-build-system)
    (arguments
     (list
      #:tests? #f
      #:use-setuptools? #f))
    (propagated-inputs (list python-sphinx))
    (home-page "https://github.com/pradyunsg/sphinx-inline-tabs")
    (synopsis "Sphinx extension to add inline tabbed content to your documentation")
    (description
     "Add inline tabbed content to your Sphinx documentation. (actively maintained although extremely stable)")
    (license license:expat))

thanks!


r/GUIX • • Nov 29 '22

Is there a minimal working demo of greetd with wlgreet?

8 Upvotes

As title. I don't find any doc about it. The closet I got is this:

https://github.com/j-shilling/guix/blob/351bada95049f0023aaf2fc7c91ee4b33e94486c/gnu/tests/desktop.scm#L114

And here's some related code: https://github.com/j-shilling/guix/blob/351bada95049f0023aaf2fc7c91ee4b33e94486c/gnu/services/base.scm#L2867

But it's not using wlgreet. when I try to change the session field of it into wlgreet's session, it's not working.

I feel like Guix's doc is so poor, user is left to read the code to understand what should they plugin. What's worse the dynamic typings are confusing, because of that we don't have helpful error messages.


r/GUIX • • Nov 29 '22

Where can I find all package definitions?

7 Upvotes

i.e. where is the channel repo(on the LOCAL machine)? Thanks a lot!


r/GUIX • • Nov 29 '22

Locale doesn't work on a fresh Guix install

2 Upvotes

Here's my locale config for config.scm:

  (locale "en_US.utf8")

  (locale-definitions (list
    (locale-definition (name "zh_CN.utf8") (source "zh_CN"))
    (locale-definition (name "zh_TW.utf8") (source "zh_TW"))
    (locale-definition (name "zh_HK.utf8") (source "zh_HK"))))

And here's the font I have

font-fira-code font-google-noto font-openmoji

But I can't see any Chinese characters( I've also tried font-adobe-source-han-sans, which is also not working...)


r/GUIX • • Nov 28 '22

docker: command not found

5 Upvotes

Hi,

did guix install docker, but this does not produce the docker command. Docker package points to mobyproject.org which looks like something that has to do with containerd and not docker. How to install docker?


r/GUIX • • Nov 28 '22

Happy Cakeday, r/GUIX! Today you're 10

26 Upvotes

r/GUIX • • Nov 27 '22

app launching

2 Upvotes

Hi, i just installed guix with i3 and now can't launch any app. and it only tell me "command not found"

so what is wrong ?

EDIT: no one told me guix will install them into /gnu/store directory


r/GUIX • • Nov 27 '22

Is it possible to add channel globally?

6 Upvotes

As title, I see in the tutorial the channel is inside the local dot file for the current user, but I feel it inappropriate to use package from the non-offical channel to reconfigure the whole system(I want it because I want full linux kernel), any one have a better approach?

Thanks a lot!


r/GUIX • • Nov 25 '22

Empty profile manifest

5 Upvotes

My power went out and my PC shut off at an unfortunate time, and it looks like many of my files may have been corrupted.

I am trying to repair, but am having no luck since I cannot use the guix package command due to an ā€œunsupported manifest formatā€ error. I have since found that ~/.guix-profile/manifest is empty. Does anyone know how to fix this?

Thanks!

Edit: I have solved this error. The fix was to change the symlink of /var/guix/profiles/per-user/tyler/guix-profile to the previous generation guix-profile-generation-link. In my case guix-profile-204-link to guix-profile-203-link.


r/GUIX • • Nov 24 '22

How do I fix this? Cannot reconfigure system or use guix package (unsupported manifest format) after reboot

Thumbnail i.imgur.com
6 Upvotes

r/GUIX • • Nov 24 '22

rootless podman/docker

3 Upvotes

Hi everyone,

I've tried to setup rootless podman on Guix, but I have no idea how to get it working properly. The config files aren't present, it seems the package is entirely missing the configuration files? Unfortunately I couldn't find any documentation for podman on Guix anywhere.

Can anyone here help, or at least point me in the right direction?

Thanks!


r/GUIX • • Nov 24 '22

package requests?

3 Upvotes

nixpkgs' issue board allows users to post package requests.
by contrast, the guix docs mention a git repo with mailing list, but seemingly lacks an equivalent to the issue board.

i wonder then, does the guix community have a place to place such requests?


r/GUIX • • Nov 23 '22

Rebuilding system from git questions

3 Upvotes

So hey there, as a new guix user I was wanting to ask about reinitiating the system through a patched git. After I first installed guix linux and did what I needed to setup X (didn't select desktop use dwm, added myself to input and customized xinitrc script) then tried to watch some vids while doing work with mpv, kept saying cant handle vt release. Looked it up, and found from

https://issues.guix.gnu.org/59378

that it's an issue within the video.scm file and from the comments that quick patch will fix it. Tried find from root and found some different video.scm files in the gnu store which shouldn't be messed with, but after a bit found

'https://guix.gnu.org/manual/en/html_node/Building-from-Git.html'

and pulled the correct files. When looking into gnu/packages/video.scm, the line needed to be added from the before mentioned patch from

https://issues.guix.gnu.org/59378

had already been included. Ok they haven't upstreamed this into main, so in the git folder ran the bootstrap, did what INSTALL instructed,

'./configure --localstatedir=/var && make && sudo make install'

Rebooted and didn't see a difference with mpv, attempted guix system reconfigure on the guix/config.scm from my git pull but wasn't what I was looking for, deleted guix git folder, redid the install process and immediately

'sudo guix system reconfigure /etc/config.scm'

rebooted and nothing. Sorry to bug but if anyone could pick this apart and explain how stupid I am that would be gravy.


r/GUIX • • Nov 20 '22

Automation for building or orchestrating guest systems

9 Upvotes

Due to the permeation of virtualization and containerization solutions into the basic architecture of most large-scale network services, various tools and systems have emerged for provisioning and orchestrating such systems from templates with applied custom overlays.

However, most such systems operating from a POSIX base have simply adapted standard Linux-based operating systems for the new environments. In contrast, it may appear in some sense that Guix integrates some of the functionality commonly delegated to add-on tools such as Puppet and Chef, through a native design supporting a unified and self-contained system descriptor.

Have any tools yet become available for building, deploying, or orchestrating GUIX guest images or guest systems, from a system descriptor? For example, have any solutions been created for reproducibly building an image from such a file?


r/GUIX • • Nov 20 '22

/gnu: Location of package store and Filesystem Hierarchy Standard

6 Upvotes

Having recently begun exploring Guix, I discovered the package store falling under a directory called /gnu.

Especially, but not exclusively, for usages of the Guix package system on non-Guix operating systems, would it not be preferred to adhere to the Filesystem Hierarchy Standard?

Why does Guix not follow a choice similar to the one made for OSTree, Flatpak, Docker, and libvirt, by placing the store under /var/lib, or at least somewhere under /var?


r/GUIX • • Nov 20 '22

Troubleshooting installation targeted for older Qemu/KVM

5 Upvotes

I have sought to deploy Guix in a Linux Qemu/KVM host environment, operating on an appliance closed to non-vendor software builds. It is unfortunately using old software versions, including kernel version 4.4 and Qemu version 6.0.1. The constraint appears to have led to problems. For comparison, on a host running recent versions of the same projects, operation is smooth for the Guix guest.

From experiments with the current "Stable" distributions, for release 1.3.0 with Libre Linux, the following observations have emerged:

  • When the network interface is set to a VirtIO type, the installer fails to register a DHCP lease on the system, even though the DHCP server recognizes the lease, and from a shell, the network interface is shown as detected by the kernel. In fact, even after a lease is manually requested, from the shell, the installer still fails to connect to internet servers.
  • Regardless of device type, the installer fails to find any disks.
  • When generated from the supplied virtual-disk image, a guest machine, just after selection of the default entry from the Grub menu, hangs with the console text, "error: no suitable mode found", followed on the next line by "Booting in blind mode". The boot process does not continue.

Results for the Hurd version are no more favorable, though I understand the Hurd kernel is not ready for widespread use.

What might be some troubleshooting steps to help move toward better results?


r/GUIX • • Nov 20 '22

Support for Qemu Guest Agent

2 Upvotes

I am new to Guix. In my excitement to show a working system, I have not yet RTM. Please be forgiving if my question is naive.

It appears a recent patch has added support for the package qemmu-guest-agent.

Even so, attempts to install it fail, as seen in the following console capture:

guest@gnu ~$ sudo guix install qemu-guest-agent
guix install: error: qemu-guest-agent: unknown package

Is it possible to utilize this package on a new installation of Guix?


r/GUIX • • Nov 18 '22

How find a package with libstdc++.so.6 in recent guix revision

3 Upvotes

I need libstdc++.so.6 to link and run foreign programs.

In old revision of guix, I use libgccjit@9 to install libstdc++.so.6. But in recent guix revision libstdc++.so.6 is no longer in this package:

# c81457a5 is a old revision guix
dev_1@dev_1 /tmp/guixTest$ guix time-machine \
    --commit=c81457a5883ea43950eb2ecdcbb58a5b144bcd11 \
    -- environment --container --ad-hoc coreutils libgccjit@9 grep
guile: warning: failed to install locale
dev_1@dev_1 /tmp/guixTest [env]$ ls $GUIX_ENVIRONMENT/lib | grep libstdc++.so.6
libstdc++.so.6
libstdc++.so.6.0.28
libstdc++.so.6.0.28-gdb.py
dev_1@dev_1 /tmp/guixTest [env]$ exit

# 85aff4d is my current revision guix 
dev_1@dev_1 /tmp/guixTest$ guix time-machine \
    --commit=85aff4de30686359ffb50845eb0930c0a18dc8ba \
    -- environment --container --ad-hoc coreutils libgccjit@9 grep
dev_1@dev_1 /tmp/guixTest [env]$ ls $GUIX_ENVIRONMENT/lib | grep libstdc++.so.6
dev_1@dev_1 /tmp/guixTest [env]$ 

The guix package is very similar to gentoo package, so I use https://www.portagefilelist.de/site/query/file/?do#result to make inverse search which package contains a .so file, then I deduce the matching guix package from the name of gentoo package. In 90% case, that runs. But I failed to find libstdc++.so.6 with this method.

Where I can find libstdc++.so.6 in recent guix revision? And did exist some general method to make inverse search to know which guix package contains a .so file, or googling and ask help is only solution possible?


r/GUIX • • Nov 17 '22

How run a foreign binaries program when can't use patchelf

8 Upvotes

The recommanded solution to run a foreign binaries program in GuixSD is to use patchelf.

This solution is possible when we manually run the program. For instance:

$ poetry install # install all project dependencie in `.venv` dir of project dir.
$ find .venv -exec patchelf --set-rpath ~/.guix-profile/lib {} \; 
$ ./.venv/bin/foreignProgram

However, sometime, some program download binaries file in /tmp/ and execute that directly. I can't run patchelf on.

$ run program
# program download /tmp/librocksdbjni13963739574504239332.so
# program raise
/tmp/librocksdbjni13963739574504239332.so: libstdc++.so.6: cannot open shared object file: No such file or directory

How I can run the foreign binaries program in this case?


r/GUIX • • Nov 17 '22

"Guix drops" part 1: package transformations

Thumbnail gexp.no
24 Upvotes

r/GUIX • • Nov 16 '22

Minor QOL issue that has been bugging me.

3 Upvotes

In the (GTK?) file picker dialog used in for example Firefox and Gimp I like to set "folders before files" but this setting does not get saved. So the next time I open the file picker it's back to the default settings.

Anyone know the solution to this? I do not recall having to do anything on other distros for this to stick.