Readit News logoReadit News
civodul · 2 months ago
On the same topic, check out this how-to on software development with Guix from the Cookbook (author here):

https://guix.gnu.org/cookbook/en/html_node/Software-Developm...

The idea was to show that there are several "levels" to take advantage of Guix for development, where the `guix.scm` file in David Thompson's blog post is the first level.

goranmoomin · 2 months ago
I feel like declarative container-like dev environments (e.g. nix shell or guix shell, and so on) will become much more popular in the following years with the rise of LLM agentic tools. It seems that the aformentioned tools provide much more value when they can get full access to the dev environment.

Sprites[0], exe.dev[1], and more services seem to be focusing on providing instant VMs for these use cases, but for me it seems like it's a waste for users to have to ssh into a separate cloud server (and feel the latency) just to get a clean dev environment. I feel that a similar tool where you can get a clean slate dev environment from a declarative description locally, without all of the overhead and the weight of Docker or VMs would be very welcomed.

(Note: I am not trying to inject AI-hype on a Guix-related post, I do realize that the audience of LLM tools and Guix would be quite different, this is just an observation)

[0]: https://sprites.dev

[1]: https://exe.dev

sdsd · 2 months ago
As a Guix lover and LLM tooling enthusiast, I complete agree. Administrating my system via Claude Code is so much easier. LLMs work better on a system that's hackable via text.
attila-lendvai · 2 months ago
random note: there's `guix shell --container --emulate-fhs`.
smnplk · 2 months ago
Guix looks really tempting to me because i find guile scheme so much more pleasant than nix. But i heard there are not that many packages in Guix. I wonder if some sort of transpiler from nix derivations to guix package definitions would be possible.
herewulf · 2 months ago
You can run Nix packages on Guix if there isn't a "native" package for it. Look at nix-service.

https://guix.gnu.org/manual/1.5.0/en/html_node/Miscellaneous...

I've never felt the need myself. If something is missing, I add it and I think that is the real fun in running Guix because creating your own well defined package or service is deeply rewarding.

Anyway, you can find people using it in the wild either by search engine[1] or with Toys[2] which is also handy for finding examples of missing packages too.

[1]: https://duckduckgo.com/?t=fpas&q=%22config.scm%22+nix-servic...

[2]: https://toys.whereis.social

createaccount99 · 2 months ago
You can stop recommending that flow (nix on guix), it's not good. You'll know if you try it.
smnplk · a month ago
Thanks, I'll check it out.
heavyset_go · 2 months ago
This is where I'm at after using Nix for a few years for different use cases. I never want to write it again, and would welcome a Scheme over Nix.
Zambyte · 2 months ago
You can just visit https://repology.org/ and see that GNU Guix has the 5th largest repository, ahead of Fedora and Gentoo. This does not include any proprietary packages, which can be added using https://gitlab.com/nonguix/nonguix (though gitlab seems to be dying for me right now?)

I've been running GNU Guix for five years now, after lots of distro hopping, including to and from NixOS. I left Nix because I found the documentation (particularly regarding the language) to be a struggle to work with (though I imagine it's improved since then).

GNU Guix + nonguix + flatpak is perfectly suitable for everyday use.

sidkshatriya · 2 months ago
The nix language is maximally lazy. It does not evaluate things it does not need to. This is good because you don't want it to burn CPU building things (very expensive expressions!!) that it will ultimately not need for final derivation. I'm wondering if guix scheme is suited well for this task:

(a) evaluation is eager

(b) lots of variable mutation.

But perhaps lazy evaluation and lack of variable mutation in guix scheme is not such a problem after all for a nix _like_ system -- I don't know.

helibom · 2 months ago
I'm still new to both Guile and Guix, but I've been reading the Guile and Guix reference manuals recently and I think some of your concerns about eager vs. lazy evaluation of packages are addressed by Guile's quoting mechanism, more specifically "quasiquote" [1]. This quoting mechanism allows passing around references to package definitions and whatnot, without actually evaluating those expressions until build time. Guix extends quasiquote to create something called "G-expressions" [2], which are even more so fitted to something like the Guix/Nix build system.

1. https://www.gnu.org/software/guile/manual/html_node/Expressi...

2. https://guix.gnu.org/manual/1.5.0/en/guix.html#G_002dExpress...

atiedebee · 2 months ago
Im very familiar with Nix or the language, but why would interpreting guile scheme for package management be expensive? What are guix and nix doing that would require evaluating everything lazily for good enough performance?
attila-lendvai · 2 months ago
"lots of variable mutation" is more like "variable mutation is no impossible, but not common".
whompyjaw · 2 months ago
Im with you. As an emacsen, i feel it’s natural for me to use Guix, but nix is so so much more popular… :/
digiown · 2 months ago
Guix being a GNU project the purism also doesn't help. Just look at this: https://github.com/nonguix/nonguix

I don't even disagree that nonfree software is bad, but blaming the users who often have no choice in the matter (e.g. drivers) is the wrong way to go.

arminiusreturns · 2 months ago
Now if we could just get people to combine Guix and other guile scheme packages that are awesome like mcron into their stacks, and then backfeed more fixes into the ecosystem, we have a real chance at helping GNUland!
benreesman · 2 months ago
I compile nix derivations to well-posed effect/coeffect/graded monad algebra so I can do real bill of materials and build on an action cache engine maintained by professionals, but that's mostly for long-tail stuff.

These days with a la carte access to all of the container ecosystem primitives as nice, ergonomic, orthogonal operations I don't really see the value in nixpkgs. Don't really see the value in a container registry either: a correctly attested content addressable store with some DNS abbreviations is 100 lines of code because mostly it's git and an S3 shim.

The category error at the heart of nixpkgs is that the environment in which software is compiled need resemble the environment in which it executes. Silly stuff. So whether you're a patchelf --rpath ... Person or an unshare --bind-mount Enjoyer (isomorphic), just remember, in 2026 the guy with the daemon that runs as root does not want you to have nice things.

davexunit · 2 months ago
Always interesting to see an older article come back around. I could probably update this a bit for 2026 but my workflow is just about the same now as it was then. Guix is good and just released 1.5.0, check it out.
herewulf · 2 months ago
(Small) discussion of the release.

https://news.ycombinator.com/item?id=46732047

pmarreck · 2 months ago
both guix and nix are 1000% better for setting up and managing per-project deps deterministically
tetris11 · 2 months ago
I love Guile over Nix syntax, but the one killer feature Nix has that Guix doesn’t is making a single static binary of common programs and then deploying them elsewhere.

In Nix, this is a single flag. In Guix, you either deploy with all libraries on a custom /guix path, or nothing.

dhon_ · 2 months ago
How do you do it in nix?
r14c · 2 months ago
Sounds like nix-bundle, but that's not a standard feature.
kwk1 · 2 months ago
tetris11 · a month ago
No, it produces a tree of libraries that you have to untar on the host machine. If you dont have root, then unpacking to /gnu/store is impossible

Deleted Comment

esperent · 2 months ago
> Dockerfiles are clunky and the rather extreme level of isolation is usually unnecessary and makes things overly complicated

I agree, for local development docker is often overkill.

However, for production it's absolutely not overkill. And since pretty much all projects are intended for production at some point, they'll need a Dockerfile and docker compose or some other equivalent.

And at that point, you're maintaining the Dockerfile anyway, so why not use it for local dev as well? That way your dev and production environments can be close to identical.

Guix looks nice - probably nicer than docker for dev work. But is it nice enough to justify maintaining two separate systems and have your dev and production diverge?

dominicm · 2 months ago
While not directly mentioned in this article, guix pack[1] allows you to distribute your software in multiple formats, including Docker images.

The general philosophy of Guix is to have a single definition for how to build your software and use it for the entire dev to production pipeline.

[1]: https://guix.gnu.org/manual/1.5.0/en/html_node/Invoking-guix...

skavi · 2 months ago
In Nix (and, I’d assume, for Guix) you can go the other way around: https://mitchellh.com/writing/nix-with-dockerfiles.

As a side benefit, the generated docker image can be very tiny.

valorzard · 2 months ago
Yeah Guix has a Dockerfile export
dolmen · 2 months ago
Your production deployment might be done with container images, but Dockerfile is not the only way to build them. Guix has builtin support to build container images without Dockerfile.
otabdeveloper4 · 2 months ago
You'd be nuts to run the Docker daemon anywhere near production.
afarviral · 2 months ago
Why is that? I also used to hold this opinion, but we use it for 99% of our production deployments (or k8s where we need it) and it has been maximally reliable, and super convenient for fault-finding. Maybe I didn't understand your take.