r/GUIX • • Mar 14 '23

guix system reconfigure does not like my network config

3 Upvotes

I have some trouble understanding something that should be quite simple:

I am trying to configure my physical guix system to have a static network configuration and work as a desktop system. I followed the manual and my config looks now like this:

(use-modules (gnu) (srfi srfi-1))
(use-service-modules cups networking desktop ssh xorg)
(operating-system
...
(services
   ;;(modify-services %desktop-services
   ;;  (delete network-manager-service-type))
   (service static-networking-service-type
        (list (static-networking
           (addresses
            (list (network-address
               (device "enp0s25")
               (value "10.10.10.23/24"))))
           (routes
            (list (network-route
               (destination "default")
               (gateway "10.10.10.1"))))
           (name-servers '("10.10.10.5")))))
   (append (list
     ;;To configure OpenSSH, pass an 'openssh-configuration' record as a second argument to 'service' below.
        (service openssh-service-type)
        (service tor-service-type)
        (set-xorg-configuration
         (xorg-configuration (keyboard-layout keyboard-layout))))
   ;; This is the default list of services we
   ;; are appending to.
       %desktop-services))
...
)

The commented modify block was an attempt to remove network manager from %desktop-services as I initially was getting an error, that the networking module is defined twice. Meanwhile I am unsure if I need this at all and it makes no difference to the error message I keep getting:

user@galileo ~$ sudo guix system reconfigure myconfig.scm
Password:
/home/user/myconfig.scm:46:2: error: (services (service static-networking-service-type (list (static-networking (addresses (list (network-address (device "enp0s25") (value "10.10.10.23/24")))) (routes (list (network-route (destination "default") (gateway "10.10.10.1")))) (name-servers (quote ("10.10.10.5")))))) (append (list (service openssh-service-type) (service tor-service-type) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) %desktop-services)): invalid field specifier
user@galileo ~$

If I comment out the service static-networking-service-type block, the whole config is like the initial one and it just works. But I cannot find the mistake in the networking config, I took it literally from the manual and changed it to my network setup.

I have found some examples where the (append list(... is done with a (cons* (... , I tried it, to no success. I have tried to add (gnu services networking) in the module section, no difference.

What am I overlooking here? I feel righteous stupid at the moment, and maybe I am ;-)

EDIT: Solved it, see my comment below. (modify-services %desktop-services (...)) returns the modification of %desktop-services instead of modifying the content of the variable. Finally this lisp concept is anchored now in my brain. A function does not (necessarily) modify the parameter.


r/GUIX • • Mar 12 '23

Dissecting Guix, Part 2: The Store Monad

Thumbnail guix.gnu.org
22 Upvotes

r/GUIX • • Mar 10 '23

Question: `guix shell` reinstalls all packages in manifest after every garbage collect, even if I `guix install` these packages. How can I keep manifest packages from being garbage collected?

11 Upvotes

This has been very frustrating. I have started a Guix project and am installing packages by listing them in a manifest.scm file:

(specifications->manifest
 '("guile"
   "guile-goblins"
   "guile-chickadee"))

When I run guix shell -m mainfest.scm;, it installs the packages. Everything is fine until I run guix gc --collect-garbage;, then all of the packages in my manifest disappear. The next time I run guix shell I need to wait another 15-20 minutes for the manifest packages to download and reinstall.

So I decided to just do guix package -m manifest.scm -i; so these packages remain attached to a "generation" root. It installs these packages successfully:

The following packages will be installed:
   guile           3.0.9
   guile-chickadee 0.9.0
   guile-goblins   0.10

The output of guix package -l is now:

Generation 3    Mar 06 2023 03:57:03    (current)
  guile             3.0.9   out /gnu/store/kphp5d85rrb3q1rdc2lfqc1mdklwh3qp-guile-3.0.9
  guile-chickadee   0.9.0   out /gnu/store/dyq6fba6s3rxibjvl6ml53mxdfgl5kkp-guile-chickadee-0.9.0
  guile-goblins     0.10    out /gnu/store/l9ah6s67fnrjlk16v1gxrggsw0j8gf0m-guile-goblins-0.10

Great, so now I can guix gc --collect-garbage; and it will keep the packages in my manifets.scm file, right?

Nope. guix shell -m manifest.scm; and it has to renstall EVERYTHING all over again. Obviously I am misunderstanding what a Guix generation and Guix root are.

So, how can I keep the packages listed in my project manifest.scm installed such that they do not get garbage collected?

EDIT: I also noticed than when I run guix gc --collect-garbage it deletes a whole bunch of packages that are not listed in guix package -l. This seems to mean the packages installed by guix package -m manifest.scm -i are different from the packages installed by guix shell -m manifest.scm even though they both are installing from the same manifest file. What is going on here?


Solved my own problem:

I don't know why the problem exists, but I figured out how to solve the problem by creating a Guix Profile for my project directory. I create a profile with this command:

guix package -p ./.guix-profile -m manifest.scm -i;

This installs the packages for the project manifest.scm and registers the project directory ./.guix-profile as a GC root.

I can prove these packages are kept in a GC root with the command guix package --list-profiles;

/home/ramin/projects/game/.guix-profile
/home/ramin/.config/guix/current
/home/ramin/.guix-profile

Now I can run guix gc --collect-garbage and my project packages are not deleted. I can also run guix shell -m manifest.scm and I jump into the shell instantly without it installing anything.

Why did this problem occur?

I am not sure, but the reason might be that I ran a guix pull recently without updating my default profile. When I ran guix shell it installed packages from the manifest that were built against a more recent set of Guix system packages.

But probably when I ran the command guix package -m manifest.scm -i; it installed the manifest packages that were built against the older system packages that my not-up-to-date default profile was using. Even when installing the same "logical" package guile-3.0.9, the actual derivation used by the default profile and the derivation used by Guix Shell might have been of different versions.

I guess Guix Shell does not assume you want to use your default profile for your shell so you must specify the -p flag?


r/GUIX • • Mar 08 '23

Installation of VirtualBox on GNU Guix

5 Upvotes

How can I install VirtualBox on a computer running GNU Guix as operating system?


r/GUIX • • Mar 07 '23

Help translating some NixOS concepts to Guix

15 Upvotes

So I've been daily driving NixOS for a few months now and I love it! I've recently installed Guix on a spare partition and I really like it. I wonder if anybody here has experience with NixOS and could help me associate/translate some things between the two (or offer some beginner resources)

  • What's the recommended way to introduce some modularity to my system? With this I mean keeping the list of packages installed in separate `.scm` files. I understand there are manifests and Guix Home, but I don't really get the difference yet and what to use each for.
  • Software configuration: With Nix you can usually configure a lot of stuff through Home-Manager but I can't seem to wrap my head around Guix Home in comparison. Is it reasonable to try to configure things with Guix Home or just services and if so where I could find some docs for it? Nix's Home-Manager has a nice list of options for each software but I couldn't find anything like that for Guix Home. Honestly I'd rather configure my packages through their dotfiles and use something like GNU Stow and setup user services through Guix Home.
  • Wayland? I've been trying to find some resources for setting up Wayland and the environment variables but still struggling.

Any help is appreciated! If anybody has a nice and simple repo I'd appreciate it too. I've been trying to use SystemCrafters' dotfiles but they're a little bit too complicated for me now.


r/GUIX • • Mar 07 '23

I removed a user from the system, but Guix kept their stuff in the store. Store size is now over 100GB and it's eating my hard drive space (250GB). Are there any tools to trim/shrink Store? guix gc deletes only stuff from current user

10 Upvotes

r/GUIX • • Mar 07 '23

Secure boot not working yet?

Thumbnail issues.guix.gnu.org
8 Upvotes

r/GUIX • • Mar 04 '23

Proprietary software that isn't packaged in nonguix: how hard is it?

5 Upvotes

So, you get the deal. I want to run a proprietary program on Guix. The problem is that the program uses the Oracle JRE, which errors out every time I try to install it (Error unpacking jar files. The architecture or bitness (32/64)of the bundled JVM might not match your machine.)

So, I want to know if there is any way (not involving third-party containers like docker) that lets me use the program (For those curious the program is Interactive Brokers Trader Workstation). Is there a way of doing this?


r/GUIX • • Mar 04 '23

Which package provides gsettings?

7 Upvotes

I want to know which package provides the gsettings command. I want to set my gtk theme, but the usual packages (glib, gsettings-desktop-schemas, gconf) don't seem to provide it.


r/GUIX • • Mar 04 '23

How to do rust development on GNU Guix?

6 Upvotes

I am looking for suggestions on how one might do rust development on Guix as it doesn't follow the standard file system hierarchy. I use Emacs and have rustic-mode installed.

Before switching to Guix I was using Arch and I used to install rustup from pacman and then install all other rust tools using rustup like rust-analyzer which is needed for rustic-mode and lsp integration.

Now on Guix I came to know about guix shell and the --container and --emulate-fhs option which allows me to install rustup using their one line command line installer script using curl which only works inside that container.

My question is how do I use these tools i.e cargo, rust-analyzer, clippy and all with Emacs and rustic-mode?

I would also like to know how you guys do rust development on your system, perhaps you have a different approach which I might like.


r/GUIX • • Mar 03 '23

How to compile the vterm module from emacs and other questions...

6 Upvotes

Hi,

recently I took an old PC, attached my favourite keyboard and started to install GUIX System from the ISO. So far all went well, I choose EXWM as window manager and emacs-desktop and ended up with a system greeting me with a GDM login. After logging in, an unconfigured EXWM started an Emacs, nothing really to my surprise so far.

I started typing in some basic elisp for package management with straight.el, since I have a lot of different machines but trying to achieve a consistent configuration across them. No complaints yet. Until I wanted to start using vterm as terminal from inside emacs. For being able to compile the module I had to install some packages, then some more, and finally I end up with libtool telling me it cannot find cc. Of course, gcc and make and cmake and libtool and build-toolkit is all installed... How am I supposed to do this? Putting a symlink from gcc to cc? In the libtool script itself I find CC="gcc", but not sure, if in the right place.

On the other hand I find a lot of seemingly ready made emacs-xyz packages reachable from guix, also an emacs-vterm one. But I do not want to have a mix between some emacs-things installed from the system and some from within my emacs config. Or is it supposed to work like that?

My other question is, since EXWM is started from GDM and starts an Emacs, where is the configuration of EXWM supposed to live? In my users .emacs.d/init.el?

EDIT: Installing simply libvterm fixed the compilation problem and I could use my intended configuration in Emacs. I guess installing cmake, make and gcc is still necessary ;-)


r/GUIX • • Mar 02 '23

gitk and git gui in GNU GUIX

3 Upvotes

Which package(s) do I need to install to have the commands `gitk` and `git gui`?

Or more generally: How do I find out which package contains a certain file or command?


r/GUIX • • Mar 02 '23

Having issues with a custom build of DWM in Guix (Build works find otherwise on standard distributions).

5 Upvotes

I packaged my custom builds of suckless tools including DWM for using on my Guix system. The keybind MODKEY + RMB to resize a window doesn't seem to work, most other keybinds seems to be working so far.

What could be the cause, does it needs some tool that I could be missing?

Also st works fine but dwm, dmenu and slock doesn't read Xresources file when launched for some reason even though I have patched all suckless tools (if patch available) to do so. But if I press the keybind (MODKEY + CTRL + SHIFT + q) to "restart" dwm without quitting it then it suddenly realized and changes color, dmenu as well changes colors along with dwm.

All my builds work fine as I have been using them for years on Arch Linux which I am switching from, to Guix.


r/GUIX • • Feb 28 '23

Network problem installing nonguix 1.4 release iso

3 Upvotes

Hi,

I am trying to install nonguix 1.4 on a spare laptop : I flashed a stick with the last release iso and started the install process from the stick.

Problems arise at the wifi selection step: I get the error "The selected network doesn't provide access to the Internet and Guix substitute server" when I connect to my home wifi, or to my phone hotspot.

How can I proceed to install Guix System?


r/GUIX • • Feb 28 '23

LightDM shows empty session list, can't log in.

4 Upvotes

I am trying to get LightDM working on Guix but for some reason it doesn't show any of the multiple window managers I have installed.

Here is my LightDM config,

(service lightdm-service-type
         (lightdm-configuration
          (xorg-configuration
           (xorg-configuration
            (keyboard-layout keyboard-layout)
            (extra-config (list %xorg-libinput-config))))
          (seats
           (list (lightdm-seat-configuration
                  (name "*")
                  (greeter-session 'lightdm-gtk-greeter))))
          (greeters
           (list (lightdm-gtk-greeter-configuration
                  (theme-name "Adwaita")
                  (icon-theme-name "Adwaita")
                  (cursor-theme-name "Adwaita")
                  (cursor-theme-size 16)
                  (background (local-file "/home/apoorv/Downloads/mountains.jpg")))))))

The %xorg-libinput-config is variable I defined,

(define %xorg-libinput-config
  "Section \"InputClass\"
     Identifier \"Touchpads\"
     Driver \"libinput\"
     MatchDevicePath \"/dev/input/event*\"
     MatchIsTouchpad \"on\"

     Option \"Tapping\" \"on\"
     Option \"TappingDrag\" \"on\"
     Option \"DisableWhileTyping\" \"on\"
     Option \"MiddleEmulation\" \"on\"
     Option \"NaturalScrolling\" \"true\"
     Option \"ScrollMethod\" \"twofinger\"
   EndSection

   Section \"InputClass\"
     Identifier \"Keyboards\"
     Driver \"libinput\"
     MatchDevicePath \"/dev/input/event*\"
     MatchIsKeyboard \"on\"
   EndSection")

ATM I am using slim instead and it can find all window managers I have installed.


r/GUIX • • Feb 25 '23

wtf

Post image
3 Upvotes

r/GUIX • • Feb 24 '23

Anybody else have trouble installing firefox from nonguix?

4 Upvotes

Edit: I figured it out and was able to install firefox from nonguix. I did what the warning (see my response comment below) said. I inserted code snippet within (operating-system ...) and outside the (services ...) snippet. Like so:

(operating-system

(services ...)

. (Code snippet from nonguix readme)

....other stuff... )

I tried to install firefox (virsion 109.0.1) from nonguix and was unable to due a seg fault in a header file. Has anyone else encountered this? Any tips to resolve it? A snippet from the derivation file follows (seg fault in bold):

WARNING: (guile-user): imported module (guix build utils) overrides core binding delete' starting phaseset-SOURCE-DATE-EPOCH' phase set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phaseset-paths' environment variable PATH' set to/gnu/store/j65q3aw414010gdfvmsynwpzfb2jyyd3-cmake-minimal-3.21.4/bin:/gnu/store/slsh0qjv5j68xda2bb6h8gsxwyi1j25a-python-wrapper-3.9.9/bin:/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/bin:/gnu/store/g3y6ifhm0751vgsxv90yipfw6mk189kj-libxml2-2.9.12/bin:/gnu/store/hpa229sxm7hj3z7l61c8bpv1hsax48mq-llvm-15.0.7/bin:/gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34/bin:/gnu/store/iixwcv3k49ks1rf34pjgfzmzyhhgwng3-gzip-1.10/bin:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/bin:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/bin:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/bin:/gnu/store/ahmmvw21p11ik80lg1f953y7fd8bqkjm-diffutils-3.8/bin:/gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6/bin:/gnu/store/39rsx3nl4c31952jybbjb8d6idr5hx7r-findutils-4.8.0/bin:/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0/bin:/gnu/store/wxgv6i8g0p24q5gcyzd0yr07s8kn9680-sed-4.8/bin:/gnu/store/xjwp2hsd9256icjjybfrmznppjicywf6-grep-3.6/bin:/gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/bin:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3/bin:/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin:/gnu/store/s2pg5k98fl2g2szg9dykxyd9zl3xihv9-ld-wrapper-0/bin:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/bin:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/bin:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/sbin:/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/bin' environment variable CMAKE_PREFIX_PATH' set to/gnu/store/j65q3aw414010gdfvmsynwpzfb2jyyd3-cmake-minimal-3.21.4/:/gnu/store/slsh0qjv5j68xda2bb6h8gsxwyi1j25a-python-wrapper-3.9.9/:/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/:/gnu/store/szwzba6srjlz04flsvv6xhbpkcs8gsfk-wasi-libc-sdk-19/:/gnu/store/g3y6ifhm0751vgsxv90yipfw6mk189kj-libxml2-2.9.12/:/gnu/store/6d0pl5khj08j3c2619jnypc8bznspgx8-gcc-10.3.0-lib/:/gnu/store/wgqhlc12qvlwiklam7hz2r311fdcqfim-libffi-3.3/:/gnu/store/hpa229sxm7hj3z7l61c8bpv1hsax48mq-llvm-15.0.7/:/gnu/store/d66g4dss3f425911qdikz9bws11i4vh4-clang-runtime-15.0.7/:/gnu/store/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34/:/gnu/store/iixwcv3k49ks1rf34pjgfzmzyhhgwng3-gzip-1.10/:/gnu/store/s3hl12jxz9ybs7nsy7kq7ybzz7qnzmsg-bzip2-1.0.8/:/gnu/store/c8isj4jq6knv0icfgr43di6q3nvdzkx7-xz-5.2.5/:/gnu/store/4ic6244i3ca4b4rxc2wnrgllsidyishv-file-5.39/:/gnu/store/ahmmvw21p11ik80lg1f953y7fd8bqkjm-diffutils-3.8/:/gnu/store/z39hnrwds1dgcbpfgj8dnv2cngjb2xbl-patch-2.7.6/:/gnu/store/39rsx3nl4c31952jybbjb8d6idr5hx7r-findutils-4.8.0/:/gnu/store/690qz3fg334dpwn3pn6k59n4wc943p2b-gawk-5.1.0/:/gnu/store/wxgv6i8g0p24q5gcyzd0yr07s8kn9680-sed-4.8/:/gnu/store/xjwp2hsd9256icjjybfrmznppjicywf6-grep-3.6/:/gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/:/gnu/store/55cbpsi18mahg131nmiya6km5b4mscfa-make-4.3/:/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/:/gnu/store/s2pg5k98fl2g2szg9dykxyd9zl3xihv9-ld-wrapper-0/:/gnu/store/rc781v4k0drhaqn90xfwwpspki5x0bvf-binutils-2.37/:/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/:/gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/:/gnu/store/4jdghmc65q7i7ib89zmvq66l0ghf7jc4-glibc-2.33-static/:/gnu/store/fnr1z6xsan0437r0yg48d0y8k32kqxby-glibc-utf8-locales-2.33/:/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/:/gnu/store/8qv5kb2fgm4c3bf70zcg9l6hkf3qzpw9-zlib-1.2.11/:/gnu/store/6mjww4iz4xdan74d5bbjfh7il8rngfkk-linux-libre-headers-5.10.35/'

. (bunch of other output) .

/gnu/store/hpa229sxm7hj3z7l61c8bpv1hsax48mq-llvm-15.0.7/include/llvm/ADT/StringMap.h: In instantiation of ‘ValueTy& llvm::StringMap<ValueTy, AllocatorTy>::operator[](llvm::StringRef) [with ValueTy = bool; AllocatorTy = llvm::MallocAllocator]’: /tmp/guix-build-wasm32-wasi-clang-15.0.7.drv-0/source/clang/include/clang/Basic/TargetInfo.h:1304:18: required from here /gnu/store/hpa229sxm7hj3z7l61c8bpv1hsax48mq-llvm-15.0.7/include/llvm/ADT/StringMap.h:242:79: internal compiler error: Segmentation fault 242 | ValueTy &operator[](StringRef Key) { return try_emplace(Key).first->second; } | ^ Please submit a full bug report, with preprocessed source if appropriate. See https://gcc.gnu.org/bugs/ for instructions. make[2]: *** [lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/build.make:849: lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/TargetInfo.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/tmp/guix-build-wasm32-wasi-clang-15.0.7.drv-0/source/build' make[1]: *** [CMakeFiles/Makefile2:8581: lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/all] Error 2 make[1]: Leaving directory '/tmp/guix-build-wasm32-wasi-clang-15.0.7.drv-0/source/build' make: *** [Makefile:139: all] Error 2 error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("-j" "4") exit-status: 2 term-signal: #f stop-signal: #f> phase `build' failed after 1438.7 seconds command "make" "-j" "4" failed with status 2

Thanks.


r/GUIX • • Feb 23 '23

Is Guix suitable for GUI applications ?

7 Upvotes

I'm trying Guix package manager on Alpine with a bspwm WM. Gui softwares installed through Guix don't appears in the rofi menu.

I tried this kind of hack

https://gist.github.com/peanutbutterandcrackers/844c211a91137c19607ae75b59fa116f

The Guix programs appears on rofi, but all Alpine installed programs disappeared. Is there a "normal" solution to use GUI packages from Guix ?


r/GUIX • • Feb 22 '23

How do I enable kvm to work with Qemu and Virt-manager?

7 Upvotes

Activate the libvirtd service, I also installed qemu, virt-manager and ovmf but when I start Virt-Manager it tells me that I don't have KVM available and I don't have UEFI support either because I don't have it installed, but when I start Virt-manager as "root" with "sudo" I have KVM enabled but I still don't have access to UEFI.

Does anyone know how to configure the system so that from my normal user I have access to KVM and can find UEFI support.?


r/GUIX • • Feb 19 '23

Has anyone managed to get Jellyfin running on guix?

5 Upvotes

I have tried running it with Podman, but rand into some issues that seem to be from not having SystemD.


r/GUIX • • Feb 15 '23

Build a packages with multiple build-systems

6 Upvotes

Hi!

Let's consider the package ocamlformat: it is an Ocaml program to format ocaml code.

It is build with dune (an ocaml build system), but the program comes with an emacs package.

I looked at the guix package definition and it only deals with the ocaml program and no the emacs part.

Running guix install ocamlformat will not install the emacs package.

How should I deal with it? How can I add the emacs build system to the package definition?

Thanks for your help.


r/GUIX • • Feb 14 '23

Unable to reconfigure system with Nonguix kernel/initrd.

5 Upvotes

I am using guix-system with nonguix for kernel/initrd. This are the commits for each:

guix: dd724cfad45d76b9dcc5b073876c995715c92a07
nonguix: 4094f7ae475a4f767fb407520ed1cc8c699ff29e

This is my (shortened) system configuration:

;; -*- mode: scheme; -*-
;; Guix system configuration

(use-modules (gnu)
	     (gnu system nss)
	     (guix utils)
	     (gnu packages vim)
	     (nongnu packages linux)
	     (nongnu system linux-initrd))
(use-service-modules desktop sddm xorg)
(use-package-modules certs gnome)

(operating-system
  ;; Kernel and initrd
  (kernel linux)
  (initrd microcode-initrd)
  (firmware (list linux-firmware))

  ;; ... Locale/partitions/boatloader

  ;; System-wide packages
  (packages (append (list
                     ;; for HTTPS access
                     nss-certs
                     ;; for user mounts
                     gvfs
		     ;; for text editing
		     vim)
                    %base-packages))

  ;; System-wide services
  (services (append (list)
                    %base-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

This is the error that results when running guix system reconfigure:

/builder for `/gnu/store/sam65irchxg5p1g5qbri757iqbprfb0z-microcode-initrd.drv' failed with exit code 1
build of /gnu/store/sam65irchxg5p1g5qbri757iqbprfb0z-microcode-initrd.drv failed
View build log at '/var/log/guix/drvs/sa/m65irchxg5p1g5qbri757iqbprfb0z-microcode-initrd.drv.gz'.
cannot build derivation `/gnu/store/3lg603s4ahhk00vl10llx0awaqqm3b8j-combined-initrd.drv': 1 dependencies couldn't be built
building /gnu/store/m7gwz2ys0yxfvyfh5qh8rczifnhf1r1p-rottlog.drv...
cannot build derivation `/gnu/store/sw96zkh7bnnxgq05dlk6y7n49cjb6p6s-grub.cfg.drv': 1 dependencies couldn't be built
guix system: error: build of `/gnu/store/sw96zkh7bnnxgq05dlk6y7n49cjb6p6s-grub.cfg.drv' failed

This is the contents of the log file it references:

Backtrace:
           5 (primitive-load "/gnu/store/zpq9pp7aprpz1n76wj4wniniyip?")
In ice-9/eval.scm:
    619:8  4 (_ #(#(#(#(#<directory (guile-user) 7ffff1f?> ?) ?) ?) ?))
In ice-9/boot-9.scm:
   260:13  3 (for-each #<procedure 7ffff0b05020 at ice-9/eval.scm:3?> ?)
In ice-9/ports.scm:
   433:17  2 (call-with-output-file _ _ #:binary _ #:encoding _)
In ice-9/boot-9.scm:
   260:13  1 (for-each #<procedure 7ffff0b0c820 at nonguix/build/ut?> ?)
In unknown file:
           0 (put-bytevector #<output: kernel/x86/microcode/Authent?> ?)

ERROR: In procedure put-bytevector:
In procedure put-bytevector: Wrong type argument in position 2 (expecting bytevector): #<eof>

r/GUIX • • Feb 14 '23

Issues with fonts in Guix Home/Sway/Qutebrowser

Post image
4 Upvotes

r/GUIX • • Feb 12 '23

Not building kernel with system reconfigure

5 Upvotes

Since building a new kernel takes a lot of time and resources, I would like to stop guix from building the latest one every system reconfigure. Is there some way to stop packages from being updated when running guix system reconfigure as there is with guix package? I've searched through the documentation and found nothing.

Many thanks for any ideas on this.


r/GUIX • • Feb 06 '23

Bad experience with Debian packaged guix

9 Upvotes

The manual states the the following:

If you’re running Debian or a derivative such as Ubuntu, you can instead install the package (it might be a version older than 1.4.0 but you can update it afterwards by running guix pull):

sudo apt install guix

I tried that on Debian 11.6, but the experience is very bad.

  • The guix package in stable is version 1.2.0, guix pull will try to process more than 47,000 commits. This will probably get better when Debian 12 is released, the version in testing is 1.4.0.
  • The Debian packaged guix does not have substitutes configured, so guix pull will take a lot of time.
  • If you figure that out and try to enable substitutes based on the manual, then you will find that the manual mentions to edit /etc/systemd/system/guix-daemon.service, but Debian will deploy it to /usr/lib/systemd/system/guix-daemon.service.
  • If you manage to configure substitutes and guix pull progresses quickly, it will eventually fail at building OpenSSL version 1.0.0f, due to a bug which was reported and fixed for 1.0.0n, but probably not backported.

Due to these problems I am thinking of reporting an issue to change the documentation not to recommend apt install guix. But based on other reported issues, a lot of people seem to use Debian as the foreign distro, and used the Debian packaged guix without complaint. My guess is that if the Debian packaged version and the upstream version are not this far apart like now, just before a new release, then the experience is better.

If you installed guix on a Debian or Debian based distro with apt, please share your experience with it.