Does anyone here use Guix OS? Would be great to hear from folks about their experiences with it so far. It really intrigues me given that it uses Guile and does not use systemd!
I am currently on Slackware and have no problem whatsoever, but given I will soon need to have the same reproducible environment across devices, Guix seems like a lovely possibility for someone who does not to use systemd (NixOS was the other candidate in case I was okay with systemd).
I used it for a little while - ran it with Sway for the desktop environment. I liked it a lot, especially the inner workings, but the syntax is very difficult to get used to. I ended up moving off of it because there were packages missing that I depend on, and I couldn’t figure out how to write my own package definitions. Guix has pretty extensive documentation, but I had a lot of trouble figuring out how to translate it into making the changes that I wanted.
That was almost a year ago though. I have since run Gentoo, and now I use NixOS. Think I may try to go back to Guix soon because technologically I think it’s beautiful, it’s just very challenging.
Thank you for the response. Did all the hardware work well for you (The usual checklist of wifi, bluetooth, mic, webcam, fingerprint scanner, touchpad, etc.)?
Could you by any chance share your configuration file? I am trying to check in different places before I attempt to do it on bare metal. I have it working well on a VM so far.
Yeah, I was using nonguix from the get-go, since I’m using the AX210 card that ships with the Framework. I used the SystemCrafters image and guide. Unfortunately I did not save my configuration file, but if I do try again soon I’ll post it here.
Hardware wise, I did not have any issues. You have to be careful to load a nonguix kernel when using a wifi card with firmware (i.e. ax210), otherwise you won’t get wifi. I did not attempt to use the fingerprint reader at the time. Touchpad worked, with the caveat of gesture support under Sway mostly being hand-crafted - I used libinput-gestures. This is built-in to Gnome though, so should be easier. If I recall, I did use the mic and webcam while I had Guix installed.
I was also adamantly against using Gnome at the time and wanted to use Plasma, which is why I ended up on Sway. I had to set up my own gestures and things, and spent a lot of time fiddling with theme or installed notification daemon and things. To my recollection everything worked fine, though since there was a lot of user configuration it was not included in the system configuration, so I would have to repeat a lot of the same steps to get an identical system with Guix, a bit antithetical to the theory of Guix. That all to say, the less configuration for user set up the more “true” the configuration file is, so hypothetically easier to port between systems.
Now I’ve moved to using Gnome on laptop and I find it better than when I left it years ago - still very limited, but I suppose it would be easier to try Guix with Gnome instead of sway. I can try again soon and report back.
Thank you for the detailed response. I did take a look at what System Crafters had posted and it seems fairly well documented. If only we didn’t have the disconnect issues with the 1TB expansion card, I could have done it ASAP, I need to figure storage issues now before I try a bare metal dual boot with Slackware now.
I’m partial to KDE, Gnome somehow doesn’t suit my palette.
In case you didn’t know, Guix does not have KDE in their repositories. There are a few smaller supported packages but the full Plasma desktop has not been ported - there’s some effort but inconclusive as of yet. I believe Gnome, Sway, and Emacs X WM (EXWM) are the most popular ones (EXWM especially since its main configuration language is also Scheme, and ties together well with Emacs and Guix).
I gave in yesterday after I posted and decided to try Guix again. I’m using Guix for the main system and any CLI applications, and Nix for user/GUI applications. I need to figure out how to use Home Services and get all that configuration abstracted - but so far based on the system configuration there’s only one thing you need to run post-install.
Here’s my config:
;; Indicate which modules to import to access the variables
;; used in this configuration.
;; /etc/config.scm # system.scm
(use-modules
(gnu)
;; nonguix linux kernel - includes firmware
(nongnu packages linux)
(nongnu packages firmware)
(nongnu system linux-initrd))
(use-service-modules
authentication
cups
desktop
docker
networking
nix
security-token
ssh
syncthing
virtualization
xorg)
(use-package-modules
admin
certs
compression
curl
emacs
emacs-xyz
file
fonts
gnome
gnupg
package-management
password-utils
security-token
version-control
virtualization
vim)
(operating-system
(kernel linux)
(initrd microcode-initrd)
;; includes iwlwifi, intel-microcode
(firmware (list linux-firmware))
(locale "en_US.utf8")
(timezone "America/New_York")
(keyboard-layout (keyboard-layout "us"))
(host-name "ariadne")
;; plugdev group, udev support for hardware key
(groups (cons
(user-group
(name "plugdev")
(system? #t))
%base-groups))
;; The list of user accounts ('root' is implicit).
(users (cons*
(user-account
(name "kjhoerr")
(group "users")
(home-directory "/home/kjhoerr")
(supplementary-groups '("wheel" "netdev" "audio" "video" "kvm" "plugdev" "docker")))
%base-user-accounts))
;; system packages - user applications can be handled by Nix
(packages (append (list
dconf
dmidecode
emacs
emacs-guix
file
font-fira-code
font-awesome
font-ibm-plex
fwupd-nonfree
git
gnome-tweaks
gnupg
gsettings-desktop-schemas
inetutils
neovim
nix
nss-certs
pfetch
pinentry
unzip
zip)
%base-packages))
;; Below is the list of system services. To search for available
;; services, run 'guix system search KEYWORD' in a terminal.
(services (append (list
(bluetooth-service #:auto-enable? #t)
(service gnome-desktop-service-type)
(service cups-service-type)
(service docker-service-type)
(service fprintd-service-type)
;; hardware key
(service pcscd-service-type)
(service syncthing-service-type
(syncthing-configuration
(user "kjhoerr")))
(service nix-service-type)
;;(shepherd-service
;; (documentation "Configure dconf for Wayland.")
;; (requirement '(user-processes))
;; (one-shot #t)
;; (start #~(if [ -z "$(dconf read /org/gnome/mutter/experimental-features)" ]; then dconf write /org/gnome/mutter/experimental-features "['scale-monitor-framebuffer']"; fi)))
)
(modify-services
%desktop-services
;; enable substitute for nonguix - should help with large packages, i.e. linux, firefox
(guix-service-type config =>
(guix-configuration
(inherit config)
(substitute-urls
(append (list "https://substitutes.nonguix.org")
%default-substitute-urls))
(authorized-keys
(append (list (plain-file "non-guix.pub" "
(public-key
(ecc
(curve Ed25519)
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)
)
)"))
%default-authorized-guix-keys))))
;; enable wayland for gdm, gnome
(gdm-service-type config =>
(gdm-configuration
(inherit config)
(wayland? #t)))
;; hardware key support
(udev-service-type config =>
(udev-configuration
(inherit config)
(rules (cons libu2f-host
(udev-configuration-rules config))))))))
(bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))
(keyboard-layout keyboard-layout)))
(mapped-devices (list
(mapped-device
(source (uuid "25b23653-1001-499e-bf04-0e6b7ecd469d"))
(target "cryptroot")
(type luks-device-mapping))
(mapped-device
(source (uuid "6f030b55-0da0-446e-8a92-59beec2b1118"))
(target "crypthome")
(type luks-device-mapping))))
;; The list of file systems that get "mounted". The unique
;; file system identifiers there ("UUIDs") can be obtained
;; by running 'blkid' in a terminal.
(file-systems (cons*
(file-system
(mount-point "/")
(device "/dev/mapper/cryptroot")
(type "btrfs")
(dependencies mapped-devices))
(file-system
(mount-point "/home")
(device "/dev/mapper/crypthome")
(type "btrfs")
(dependencies mapped-devices))
(file-system
(mount-point "/boot/efi")
(device (uuid "8108-7268" 'fat32))
(type "vfat"))
%base-file-systems)))
In order to get fractional scaling to work, you need to run dconf write /org/gnome/mutter/experimental-features "['scale-monitor-framebuffer']". Then on relogging you should be able to select that beautiful 150% (or whichever is your preference) in Display settings. Eventually I’ll get that fixed in the config.
Fingerprint for some reason isn’t working at login, but I have been able to register them in Gnome settings. I probably just need to wipe out the fingerprint database from the last time I used it.
Haven’t gotten lvfs working either. Still trying to find if there’s some configuration I need that I haven’t added yet, there’s not much in documentation about it yet.
Wifi, touchpad, mic, webcam, speakers all work splendidly out of the box. I was able to connect to my mouse via bluetooth as well.
@kjhoerr This is wonderful! Thank you for the update. I guess time to clear the clutter on my machine and make some space for GUIX and dual boot for a while.
Did a guix pull and reconfigure today and the fprint issue rendered me unable to log in via GDM, just instantly kicks me back to the user select screen whenever I try to log in, even with fingerprint disabled in user settings.
I may run a liveusb to try sideloading the fprint db clear script I’ve seen floating around on these forums, but for now I just removed the fprintd-service-type spec in the config. I see from a mailing list there’s a new fprintd-configuration spec, but that hasn’t even reached the dev manual yet so not sure how to tweak it. If anyone else gets it working let me know.
I figured out you can use fwupdtool just fine, sees all the devices and can refresh and update. The problem is you can’t enable the lvfs-testing remote, since that only works via the fwupdmgr command. This problem will hopefully eventually become moot once Framework updates move to the stable remote.
@kjhoerr Regarding your config, would you mind helping me with the (xorg-config (extra-config)) form? I’m trying to get my touchpad to let me tap to click, but when I do, the display manager (I think it’s SLiM or GDM or whatever the default was when I installed i3) completely fails to load. It just gets to the black terminal login prompt and then hangs.
My config is located here: debian Pastezone , I’ve made some minor modifications after reading the arch wiki and trying to get help from the guix IRC channel, but with no luck on this part, unfortunately So I was hoping someone else with a framework machine could help me get this fixed up. I’m on a 12th gen model, if it helps.
Thanks for any help you can spare, I greatly appreciate it.
It’s difficult to find good examples of this, I end up spending a lot of time googling for “system.scm | config.scm” or something of the like just to see how people use it. Scheme definitely isn’t easy for beginners
I apologize that I’m reaching in the dark here, I’m more wayland only per my config. It looks like the service definition you’re using is a procedure, which I’m not very familiar with. Based on the documentation I think you should be able to do this:
EndSection"
))
(keyboard-layout keyboard-layout)) gdm-service-type)) ;; or whichever display manager service-type
;; This is the default list of services we
;; are appending to.
%desktop-services)
Non-update that may turn into an update: I picked up an Ath 9462 from ThinkPenguin and installed it in my 11th-gen. My NixOS install has reached a great point so I’m thinking about dual booting Guix and see if I can avoid using nonguix since I won’t have the iwlwifi driver module dependency and the ath drivers are blobless. Will post here if I make any progress.
I’m using Guix System as my primary (only) OS on the Framework with the non-free kernel and firmware.
Almost everything works fine. Some things like iio-sensor-proxy are not packaged at the moment so the auto-brightness doesn’t work. The fingerprint daemon was buggy when I’ve created my config so I’ve disabled that. It might work now.
@5uie1 I won’t mind but I’ve got to substitute a lot of private parts that might jeopardize my privacy. And without this (/etc/host rules, some employer specific proprietary packages, network mounts with my IPv4 in it) it’s almost the standard gnome config.
It’s also a bit cluttered with multiple inherit rules from a base configuration which is the same for all my machines so it might be a bit hard to read.
I’ve got a custom dwm config with all kinds of bells for my workstation, but it isn’t optimized for laptop use yet. I also want to transition to wayland so I probably will create a completely new config in the coming months. That one will be shared on my gitlab.
Got Guix installed again and wrestled with my configs for a bit to get my Nix home-manager configuration and my pre-existing Guix config to work together. Had some trouble with my yubikey being seen by GPG for git and ssh but that’s fixed now. KeePassXC still won’t read it without sudo permissions. I’ve fiddled with the udev rules quite a bit by this point so I’m not sure what the issue is, and it’s an issue I’ve had before, in Guix specifically.
The Ath 9462 works pretty well even with linux-libre, all except for bluetooth with is universally nonfunctional for libre or requires some blobs to run, if I’m correct. It’s probably slower than the AX210 chips but for my day to day use it’s unnoticeable.
My Guix config for my framework laptop sits perpetually over here now if anyone wants to reference. Some of my fixes ended up being from my home-manager setup which is in the same repo.
I’ve gone LUKS-less this time. I can’t live without Secure Boot and TPM unlocking anymore I may transition back to NixOS pretty quickly and just do a Guix VM. I want to try to get impermanence set up in Guix, but it’ll be a lot of work…
Managed to get wifi working on the Framework 13 AMD Ryzen 7040 but looks like the non-free kernel from nonguix doesn’t include the driver for RZ616/MT7922 adapter by default.
To add the required modules use a custom kernel based on linux-libre-6.6
You can switch back to nonguix’s plain linux kernel if you like, the patch enabling the driver has now been merged and doesn’t require any extra configuration.
I set (non)Guix up on my 13 AMD yesterday with GNOME and it’s running beautifully. The one sticking point is that shutdown and reboot actions don’t seem to work, as they cause the system to just hang on a blank cursor. But I’ve heard this is common on other Guix machines as well.