Reposting because it looks like federation failed.
I was just reading about it, it sounds like a pretty cool OS and package manager. Has anyone actually used it?
Using Scheme instead of a purely functional language like Nix as the Nix/Guix expression language is a bold choice I am not sure I agree with.
Scheme is the most functional of all non-purely-functional languages that I know of. What’s more, the parts of Guix in which packages are defined are quite pure, even using monads for some things, so it is really not too different from the Nix language.
the parts of Guix in which packages are defined are quite pure, even using monads for some things
Monads have nothing to do with purity. In fact, one of the most infamous usages of them is Haskell’s IO monad which is probably the most impure construct in the entire language.
it is really not too different from the Nix language.
Hm, I can’t help but think that a lisp dialect can never really be similar to any language except another lisp.
Guile Scheme is the official extensions language for the GNU Project. Guile and Guix’s history often intersect as Guix is seen as the shining poster child of Guile and contributes to a lot of Guile’s development.
When you say “Scheme” you should also refer to what type of Scheme you’re referring to as there are multiple with different feature sets/goals.
It’s actually easier this way because you keep everything in one place.
I edited some file on Ubuntu to merge my audio channels into one because one of my speakers broke. Do you think I know what change I made to what file now? When I update, do you think I can merge my changes with the new file and make everything work? Of course not, I am several years into forgetting what I did
But configuration.nix
is one file, I usually get a deprecation notice for some stuff and just change a line here and there from time to time. All of my changes are in there and they are in git. When I switched to flakes I also added flake.nix
in there, but it’s still just two files in one folder I play around with. Not only that, but the maintainers already gave me the options I need for my services. I don’t have to follow some guide online to set something up, I just enable it and it works immediately.
For example, enabling iwd
is:
networking.wireless.iwd.enable = true;
I just did that and it worked. I commented it out and it went back to whatever the default package is. Is this as easy to toggle back and forth in other distros?
Guix is almost like nix but with scheme, right? Any other differences?
I do like scheme. Nix is quite impressive. But my unpopular opinion is I am not convinced it’s philosophy is necessary. Nix feels like a workaround to legacy baggage in POSIX to allow for all its features of full reproducibility of packages and the overall system. Although Gentoo is not exactly reproducible, I feel like the level of control is sufficient to give me the benefits I want.
Nix works for maybe 95% of cases, but the 5% where its workarounds do not work sre annoying to deal with. Gentoo on the other hand doesn’t break so much from the traditional unix way of doing things, but still grants the user a great load of freedom and choice.
The biggest difference between Nix and Guix is that Guix doesn’t support non-foss software, meaning you can’t use it as a package manager on other operating systems. I originally wanted to use Guix but use a Mac for work, so that became a deal breaker.
Nix is pretty awesome as a package manager, I’ve been happy with it after the truly unnecessary learning curve brutality. I do not imagine I would ever use the full OS though.
Based on what I’ve heard so far: GNU Shepard instead of systemd, a package manager that compiles things from source and allows user-defined compiler options, a totally different way of arranging system files, and Guile-Scheme is used for everything; it sounds like there’s no other kind of configuration anywhere.
It also uses Linux-libre by default, although you can go back to plain Linux, and they’re working on Hurd.
Everyone thinks it’s great, but they actually run NixOS in the meanwhile
The idea behind it really appeals to me. However, Guix is so niche that I felt like it was not worth the effort to actually daily drive it. I went the NixOS way instead and have been daily driving it now for almost 2years. I’m really satisfied with the paradigm immutable and reproducible os. I also manage my servers this way and it makes it really easy to rollback stuff.
The learning curve is the same as for any language but you have to relearn how to manage an os this way as it can be really different than a trad os. It forces you to really understand for example how packages traditionally expect to link to various libs available on your system.
It looks like a cool distro if you want/need a highly configurable package manager that makes your system easily reproducible.
But if you’re just looking to learn more about Linux and learn more about how your system is set up then your average distro you might just want to go with Arch, Void, or Gentoo.