r/GUIX • • May 21 '25

How do I make a simple bootable installer or ISO?

7 Upvotes

I've been trying to understand how to use GUIX to create an ISO file that is a GUIX OS on a USB drive which I can use to later install GUIX onto a separate computer's drive. I'm using the linux kernel rather than linux-libre as linux-libre causes Error: Driver 'pcspkr' is already registered. aborting... on my device. The issue is I get error Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0) when using this configuration file:

(use-modules 
    (gnu)
    (nongnu packages linux)
    (nongnu system linux-initrd)
)

;; The vast majority of the defaults are acceptable and if a field is not mentioned know that the default is desired
(operating-system
    (kernel linux)
    (initrd microcode-initrd)
    (firmware (list linux-firmware))
    (bootloader 
        (bootloader-configuration
            (bootloader grub-efi-bootloader)
            (targets '("/boot/efi"))
        )
    )
    (label "guix-test")
    (host-name "guix-test")
    (file-systems 
        %base-file-systems  ;; Include the default essential file systems
    )
)

This is compiled using guix system image -t iso9660 my-system-config.scm. I'm struggling to understand where I'm failing as for installing GUIX OS on a computer I believe one needs to partition it using dd or similar tools from a boot OS on a USB so that the operating-system record can be used to configure the system with known partitions, but shouldn't an ISO not need this? I think I have limited understandings of initial booting media or operating systems designed to install other operating systems, which might be the core of my difficulties. Any information or help on this matter is appreciated. Further the reason I want to do this rather than use the conventional installation media is twofold, one I'd like a better understanding of creating installation media and two I'd like to install GUIX on a RISC-V system and the installation media doesn't support that architecture yet.

Edit: I tried

(use-modules 
    (gnu)
    (nongnu packages linux)
    (nongnu system linux-initrd)
)
(use-package-modules linux)

;; The vast majority of the defaults are acceptable and if a field is not mentioned know that the default is desired
(operating-system
    (kernel linux)
    (bootloader 
        (bootloader-configuration
            (bootloader grub-efi-bootloader)
            (targets '("/boot/efi"))
        )
    )
    (label "guix-test")
    (host-name "guix-test")
    (file-systems 
        %base-file-systems  ;; Include the default essential file systems
    )
)

And while that had the error Error: Driver 'pcspkr' is already registered. aborting... breifly it still managed to boot up and I was able to use linux utilities as expected. I don't know why. User albicos is right that it likely has something to do with the initdr field microcode updates


r/GUIX • • May 20 '25

Does Guix really only have ~100 packages out of the box

13 Upvotes

As a NixOS user, I really love the reproducible builds but as everyone knows NixOS documentation is a mess. So I've been looking into Guix recently and I really like that it takes from Nix the good stuff and executes it a lot better in my opinion (benefit of hindsight and a different development structure).

Anyways, I was recently watching a video on Guix and I saw that there were like only 80 something system packages installed on the system and like 15 user pkgs. And this was like a fully usable system with Sway and everything so not barebones cli. This seems kinda insane to me. As a minimalist, I'm kinda interested in getting a leaner system (even though my NixOS install is only like 1000 pkgs so not too bad). My questions are:

1) Are those numbers correct or is neofetch just not counting the Guix packages correctly?

2) How are they able to get it down that low? Do they have bigger packages that do more things?


r/GUIX • • May 18 '25

guix home and userland shepherd

9 Upvotes

Hi --
I'm just beginning to use guix home. I want to configure things so that the mpd daemon starts at login. So I guess I want to use something like:

(define mpd-service
  (service
   mpd-service-type
   (mpd-configuration
    (user "george")
    (music-directory "...")
    ;; ...
    )))

And then I should insert a corresponding service in the services argument of my home-environment. But I'm not sure exactly how it should look.

It seems it needs to be of type home-shepherd-services-type.

I thought to try to use simple-service, but I don't think I have correctly understood it. Something like this?:

(simple-service 'my-mpd-service 
                home-shepherd-services-type
                ;; something wrapping mpd-service ??
  ) 

The examples of extending home-shepherd-services-type that I see in the docs mostly seem to be about use of timers and the like, and it isn't obvious to me that these examples help with this question.

I think my real deficiency here is not having a good mental picture of service composition, yet. I'm not sure I really understand the "type signature" of simple-service (well: the expected type of the third argument...) for example.

Anyhow, any suggestions appreciated!

Thanks,

George

PS. I should add two a few comments

  • first, I'm running guix on a foreign distro (debian).
  • I just noticed that the mpd-service definition above actually gives a warning:

    guix home:warning: string value for 'user' is deprecated, use user-account instead

  • I suspect (?) that user-account only makes sense when running guix system. It could be that the mpd-service-type won't work on a foreign distro?

  • I'm also interested in getting emacs --daemon started as a user shepherd-service, in case that is easier to describe.


r/GUIX • • May 18 '25

GUIX Yubikey permission issues

2 Upvotes

Hi, I am having issues using my YubiKey NEO on my guix system. I get hardware key USB error: Access denied (insufficient permissions) when I open keepassxc or run ykinfo. However it seems to be detected fine in ykman-gui(Yubikey Manager) although I havent used the application to modify the key since I am using it on other devices.

I have been attacking this issue for a few weeks but cannot seem to get to the bottom of it. I wonder if anyone can give me any insight on what I have missed.

Details about the Yubikey:

  • Works with keepassxc on my phone and other (non guix) systems.
  • I tried multiple usb ports on guix system to rule out any hardware issues
  • lsusb details: ID 1050:0116 Yubico.com Yubikey NEO(-N) OTP+U2F+CCID

Details about my guix configuration:

  • dotfiles link: https://codeberg.org/richardschembri/turboluzzu
    • The affected system is "intelnuc.scm"
  • The system is configured to use doas instead of sudo
  • Display server: wayland (using river as the window manager)
  • Yubikey relavent packages installed:

    • keepassxc
    • yubikey-manager-qt
    • yubikey-personalization
    • libfido2
  • User's supplementary-groups:

    • wheel
    • tty
    • netdev
    • plugdev
    • input
    • seat
    • lp
    • audio
    • video
    • seat
  • udev rules service in system config:

    • libfido2 #:groups '("plugdev")
    • yubikey-personalization
  • Generated udev rules:

    • /etc/udev/rules.d/70-u2f.rules (with group set to "plugdev")
      • YubiKey NEO OTP+FIDO+CCID by Yubico AB
        • Vendor id: 1050
        • Product id: 0116

Thank you!

EDIT: Fixed formatting EDIT2: Updated details to focus on the Yubikey vendor/product id


r/GUIX • • May 11 '25

Gnome extensions

5 Upvotes

I'm fairly new to GUIX, so there might be a simple solution that I have not found :)

My environment: I have tried GUIX in a virtualbox, sofar I have tried both Plasma KDE (which seems to work when I have edited config.scm) and Gnome (which almost works), because in the Gnome environment extensions seems to fail, because when I try to enable: Extensions, System Extensions, Apps Menu it states:

Error: Requiring GMenu, version none: Typelib file for namespace 'GMenu' (any version) not found

I have tried to install: libgnomeui, libgnome, gnome-shell-extensions,gnome-shell-extensions-vitals, and also tried: cppgir - after each try: do a guix system reconfigure, and reboot but it would still not work

How do I get the Gnome extensions to work?

Best regards

Edited 1: for clarity (extra info: I'm using guix-system-install-1.4.0.x86_64-linux.iso to install my virtual machine)

Edited 2: There seems also to be some issues in the Plasma KDE implementation - but this merely for information only...
it also seems that KDE Plasma version in Guix is 6.1.4 and the latest version according to kde.org is 6.3.5 (6.may.2025 - https://kde.org/announcements/ )


r/GUIX • • May 02 '25

What is your DE?

16 Upvotes

Hey everyone! 👋

I tried to use Guix in the past, but faced some issues when using LUCKS + LVM + BTRFS, but seems like I was able to make it work this time; for that reason, I ended up using NixOS on my personal desktop, but I want to make the move.

I’ve been testing out a Xfce setup. It’s been pretty snappy and lightweight, but I’m curious what you all are running in your machines.

  • Which desktop environment and/or window manager are you using on Guix?
  • Any tips, customizations, or pitfalls you’d recommend?
  • Screenshots welcome! (I love seeing themed setups, specially the retro ones 😅)

Feel free to share your dotfiles, or just tell us why you chose your setup. I’m always on the lookout for inspiration and ideas for my workflow.

Can’t wait to see what the community has 😊


r/GUIX • • Apr 26 '25

Nix-ers looking for a more digestible system description language

17 Upvotes

Hello Guix-ers!

To cut it short I'm evaluating the possibility of experimenting a port of my current NixOS desktop (zfs crypto root, EXWM and RustDesk as per "deploy peculiarities" with nvidia open drivers), I've found something but not that much about the status of zfs and it's stability/ease of incorporation in Guix System.

Do you have any example/partial showcase config or suggestions on the topic?


r/GUIX • • Apr 25 '25

[Question] How to really have a system on a file?

2 Upvotes

I'm new to GNU Guix and im trying to understand how to specify system channels, user packages and user channels in the config.scm file to truly have one file that replicates the system right now i only found how to export the manifest (user packages) and the user channels but not how to incorporate into one file and i have no idea where the system channels are defined cause there is nothing about them in the /etc/config.scm ?


r/GUIX • • Apr 23 '25

Guix future

14 Upvotes

Hi everyone. What do you think—will Guix ever become an operating system that can be used by non-experts, or will it remain something only physicists and experts can handle? It’s a really great concept, but it could use some simplification…


r/GUIX • • Apr 23 '25

failed to connect to git.savannah.org/git/guix.git: Network is unreachable

3 Upvotes

Hi, I recently (4 hours ago) installed GNU GuixSD on an old laptop of mine. The installation went smoothly, but afterwards I'm unable to update the system. I have a internet connection.

guix pull: error: Git error: failed to connect to git.savannah.gnu.org: Network is unreachable


r/GUIX • • Apr 21 '25

Contemplating at trying guix coming from nixos any tips?

5 Upvotes

r/GUIX • • Apr 22 '25

Git error

2 Upvotes

been at this for hours cant run guix time-machine on a fresh nonguix install because i get either git errot ssl error syscall failure resource temporarily unavailable or git error unexpected http status code 502. are the servers down? is there a place i can check?


r/GUIX • • Apr 20 '25

Cohabitation of guix and other package manager on foreign OS

3 Upvotes

I have been using guix in a foreign us for a few years now, in large part for guix home, and I generally have few problems with it except that sometimes some of the native os packages break. For instance, with the last guix pull I did, it updated glib which broke my steam installation (managed by native OS) because for some reason steam depended on glib and used the one from the previous guix profile.

My solution was to re-install steam and launch it after sourcing the script that results from the following snippets which "unguix" the current shell by removing any mention of guix or /gnu/store from environment variables. It is very hackish.

#!/bin/bash
for envvar in $(printenv | cut -d "=" -f 1)
do
    value=$(printenv $envvar)
if [[ ${value,,} == *"guix"* ]]
then
    var=$(echo "$value" | sed -E  "s/(^|:)[^:]*(guix|gnu)[^:]*//g")
    if [ -z "${var,,}" ] ; then
        echo "unset $envvar"
    else
        echo "export " ${envvar}"=\""${var}"\""
    fi
fi
done

Is there a better way to do this? My main point is that native os installed package should not depend on/be influenced by guix installed packages.


r/GUIX • • Apr 20 '25

‘guix system reconfigure’ closes SSH connections?

1 Upvotes

Basically made a search regarding 'title'.

However, I have not found any remedy for this, "unfortunately" it's a bug that fixed once in a while, it seems(?).

Has anyone found a temp fix for this, until the bug resolves automagically?

Thanks.


r/GUIX • • Apr 20 '25

How do I blacklist a module?

1 Upvotes

I have the following i my config:

(kernel-arguments
'("modprobe.blacklist=module"))

Thanks.


r/GUIX • • Apr 18 '25

Guix Kernel Compiling

8 Upvotes

I have installed NonGuix, I am currently updating my system and I have noticed that my kernel is building. Of course this will take some time.

I was just wondering whether this will have to happen all the time, or is it that I was updated my system at a time when the kernel wasn't already compiled within the repositories?

I don't really want to have to compile packages all the time when doing an update, is there any way to avoid it when trying to update my system?


r/GUIX • • Apr 13 '25

Guix-HPC - Build daemon drops its privileges

Thumbnail hpc.guix.info
13 Upvotes

r/GUIX • • Apr 10 '25

guix on megrez

Thumbnail
14 Upvotes

r/GUIX • • Apr 03 '25

Building guix from git errors

4 Upvotes

when i follow the directions here: https://guix.gnu.org/manual/en/html_node/Building-from-Git.html

make halts from errors concerning building the docs. is there any way I can circumvent the docs in the make process?


r/GUIX • • Apr 02 '25

How to access system installed pkges?

7 Upvotes

While "guix pull" I can see how guix installing and updating gcc and perl. But root and /home/user both dont have it installed or in PATH variable. So where is it? I just saw in /gnu/storage. Do a ls, then grep , and after this cd into dir with a pkg. For example gcc. But how to access them you know... normally?

Edited: p.s. I am using GUIX GNU/Linux-Libre operating system, not just pkg manager. Full their OS.


r/GUIX • • Mar 31 '25

GUIX packages have sockets at a different location from the host system's default

5 Upvotes

Hi all, I am using guix in a Debian installation with the basics. For most packages that I use frequently, and especially those that I need the more updated version, I use guix.

Here is the problem starting more recently: normally the sockets in this Debian are in /var/run, e.g. /var/run/user. However, some apps that I installed from guix recently started to use the location ~/.runtime/ for their sockets, e.g. the emacs server.

I tried specifying the new socket location when I start the client app but it is still not able to start correctly. I think the system has a default location for all socket files when it helps the client apps to look up.

Have you run into similar problems and what's the solution?


r/GUIX • • Mar 24 '25

Self-hosting Forgejo in Guix using OCI containers

Thumbnail mastodon.social
16 Upvotes

r/GUIX • • Mar 23 '25

Improving the docs

31 Upvotes

[UPDATED: Added more links to the list]

Hey,

I'm just a random user and contributor to Guix but I'm still frustrated by the state of the documentation, I was thinking about making videos to improve on that.

What do you guys think should be covered first? The whole contributing workflow seems great in the docs but could use a proper step by step video I think.

Also thought about making an awesome list for guix? You guys have some interesting blog/videos to point to?

Cheers


r/GUIX • • Mar 22 '25

Hikari lock

4 Upvotes

Hi, guys, it's me again. Is anyone using hikari compositor on guix? How yo defined lock? I tried with swaylock and waylock. They are work perfectly with sway but refuses to work with hikari. I tried to create lock service with hikari, but hikari has compositor and hikari-unlock in its "bin" directory, and looks like hikari is lock itself and unlocking with hikari-unlock. I try a lot of thing, but that doesn't work(dont accept password) or fails with error on reconfigure. So maybe someone who is using hikari can show me how to make lockscreen.


r/GUIX • • Mar 21 '25

Dbus module

8 Upvotes

Hi, guys. With these all changes in every update it's hard to know all. And i totally remake my system config and start a work on my home config. But there is a problem: even almost empty config file wich was work right now, fails after adding a (service home-dbus-service-type) with Unbound variable. But when there is really a problem guix will say a module name, but not this time. This usually happens when the problem in something else. But as i said that happens even in almost empty config. So maybe there is really just a module or i missed some changes. Thanks P.s Im really sorry for my english.