ruffsl

joined 2 years ago
 

Colmena is a simple, stateless NixOS deployment tool modeled after NixOps and morph, written in Rust. It's a thin wrapper over Nix commands like nix-instantiate and nix-copy-closure, and supports parallel deployment.

 

cross-posted from: https://programming.dev/post/37743241

Related discussion:

Related blog posts:

4
submitted 2 months ago* (last edited 2 months ago) by ruffsl@programming.dev to c/nix@programming.dev
 

Related discussion:

Related blog posts:

 

Mechanical keyboard enthusiast inevitably circums to Linux distro hoping syndrome.

 

Fair criticism, although the larger discussion thread this garnered earlier this year was an interesting read. Over +300 comments:

[–] ruffsl@programming.dev 2 points 2 months ago

Check out the nix config repo from Unmoved Centre:

[–] ruffsl@programming.dev 5 points 2 months ago

It's a great video, and I hope the author is able to publish more nix content like this again soon. We'll just have to watch their blog's RSS feed in the meantime.

[–] ruffsl@programming.dev 2 points 2 months ago

Hello Patrick! Thanks for the writeup; gradually incorporating it into my config.

BTW, I recall reading a PR you started on fixing the fallback from failing substituters? This may be of interest to you:

[–] ruffsl@programming.dev 3 points 2 months ago (1 children)

That is a bizarre looking error. What architecture is your host system? Is your config repo publicly viewable? Installing tail scale is your only build issue?

[–] ruffsl@programming.dev 3 points 2 months ago (1 children)

Only not by itself, no? Couldn't it be combined with any of those X11 server apps for hosting a display socket over the local loop back?

[–] ruffsl@programming.dev 3 points 2 months ago

Whoops, I misread scheme as schema. That's really powerful. One thing I wish I could reliably do with a Nix LSP is navigate to a definition of a symbol.

[–] ruffsl@programming.dev 2 points 3 months ago

Still seems a little too idealistic, not sure how this would really shake down with more complex build systems or multilingual projects.

[–] ruffsl@programming.dev 3 points 3 months ago (5 children)

I haven't dug into Guix yet, so is the config more of a markup and less of Turing complete language? That sounds like it'd be easier to grock or optimize an LSP for.

I have heard that Guix takes a stronger stance with respect to unfree software. I don't think any of the official nix Hydra infrastructures build for unfree packages, but they are packaged and indexed into nixpkgs. Has Guix been difficult at all in that regard, i.e. using proprietary drivers or closed libraries for work or personal hardware?

[–] ruffsl@programming.dev 9 points 3 months ago

As soon as you veer off the beaten path, things can get really tricky.

For med tech and robotics development, I'm still using Debian via docker because the surrounding ecosystems for those software communities are so tightly integrated with the Debian.

[–] ruffsl@programming.dev 4 points 3 months ago

Hey do we have a central place with everyone’s configuration file ?

As roundabout as it sounds I've had good luck using GitHub's code search with language:nix and path:flake.nix modifiers.

E.g, I was looking for complete flake examples to overlay nvidia drivers from the unstable branch/channel, I used this regex:

Most folks publishing their configs often have more advance setups, but still nice trace git blame to learn how they evolved.

some config file editor where I can just toggle kde + nvidia drivers +

There is SnowflakeOS this kind of stalled, but that could change with recent improvements to structured edits of Nix:

[–] ruffsl@programming.dev 11 points 3 months ago* (last edited 3 months ago)

I think installing NixOS is something that could really benefit from more community mentoring or nearby a local linux user group.

Now that I have a working config for my hardware, I feel like I could explain it all to my old self in under half an hour. But to get to that point of familiarity took a few days. Having someone over your shoulder to save a new user most of any trial and error could go a long way in terms of adoption or bounce rate. It's like subject that can be tricky to approach solo, but could be trivial if tutored even slightly formally.

If you also like me prefer spoken/visual instructions over written forms, I'd also recommend these resources:

[–] ruffsl@programming.dev 4 points 3 months ago (1 children)

Well let me at least leave why I think Nix is not it at the moment:

  • Software Center - browsing search.nixos.org isn't quite the same in terms low friction and discoverability
    • You already have to know what you're looking for, and it can't make system config on your behalf
    • Debian or conventional package managers usually offer a native GUI for package selection and deployment
  • System Defaults - the minimality of a basic default install can cause a lot of papercuts
    • the default boot partition is rather small given the OS's prepecity to add new kernels with new generations
    • and without any garbage collection service enabled by default, user first encounter switch failures due to this
  • External Binaries Compatibility - Linux also suffers from this in general as compared to MacOS or Windows
    • in addition to being much more niche, reuse of existing binaries from more prevalent distros becomes complicated
    • the desktop ISO could suggest a nix-ld config with default libs most binary distributes expect, easing in new users
  • The Nix language - much more complex than conventional cong markup langs, being more of a turing complete DSL
    • partial working LSP impare introspection while writing, and the runtime error messages are poorly formatted
    • most desktop users (in debian or fedora) have little need to learn their OS's packaging schemas, but NixOS users do
view more: β€Ή prev next β€Ί