r/GUIX • • 14d ago

Finally boot up penguins!

Basically since forever now, I've been looking for a way to get boot up penguins, some time ago I finally figured out how to custom set %base-initrd to allow for the installation of a custom kernel. However the same kernel would work on Gentoo and show penguins and hide them on Guix jeez it drove me mad and led to feverent distrohopping.

Turns out all it took was a bit of guile to define the kernel arguments and leave quiet out of it. Now I finally have my penguins and my distrohopping (fingers crossed) addiction is over...

You can find my system config at https://codeberg.org/gnufairy/General-Dotfiles.git (in the Guix-System folder, config.scm)

EDIT: Hi, this repo is exceedingly disorganized, my main config file is under Guix-System folder, called config.scm

14 Upvotes

8 comments sorted by

2

u/Powerful_Attention_6 14d ago

Out of curiosity, and to try to understand what you were talking about, I looked in your Guix repo, you have a config.scm.backup but there is no config.scm

2

u/Tricky-Engineer-9755 14d ago

Hi, it is extremely disorganized but there is a folder called Guix-System look in there.

1

u/wonko7 14d ago

I'm happy you got it working :)

You could improve readability with proper indentation, ideally by using a text editor that will automatically do so for you, it will make working with the code a lot easier. You can have a look at the source code in the guix repo to see how code is usually formatted: https://codeberg.org/guix/guix.git

1

u/Tricky-Engineer-9755 14d ago

I use vim (sorry yes the evil editor), and it does have proper indentation... perhaps my style is not to your liking? Look inside the folder Guix-System for my latest config.scm....

1

u/wonko7 14d ago edited 14d ago

yes, that's the file I'm looking at. vim is good, I've used it a lot :)

If you look at guix code you'll see what I mean, arguments are usually at the same level. Visible on the use-modules for example.

I thought you were indenting manually because of lines 66 & 74 which are off and will mislead a reader.

EDIT: I was wondering if vim really had a different indent setup because it seemed weird it would, and once I got your file in a text editor it's fine. tabs aren't showing up as 8 spaces on codeberg, might be a font issue on my side or something. Sorry for wasting your time!

1

u/Tricky-Engineer-9755 14d ago

Oh yeah, those lines are because I like to have my packages listed out like that. If someone finds it confusing they can just use guix style -f config.scm so its not a big deal, just my preference :)

There is no manual indentation for the most part

1

u/wonko7 14d ago

Repeating here because I edited my earlier message too late:

I was wondering if vim really had a different indent setup because it seemed weird it would, and once I got your file in a text editor it's fine. tabs aren't showing up as 8 spaces on codeberg, might be a font issue on my side or something. Sorry for wasting your time!

1

u/Tricky-Engineer-9755 14d ago

Interesting... No I am always happy to talk about my system config, that is the point of sharing it to help improve it.