Stream: homelab

Topic: Nix users?


view this post on Zulip Anders Johansson (Oct 26 2024 at 06:16):

Anyone fiddling with nix, nix-darwin for their computer setup and what not?

view this post on Zulip Matthew Sanabria (Oct 26 2024 at 08:13):

Not yet but I saw that this was announced: https://determinate.systems/

view this post on Zulip Anders Johansson (Oct 26 2024 at 09:11):

I use their nix installer script. Really easy.

view this post on Zulip shaun smiley (Oct 28 2024 at 14:57):

I tried out NixOS a few years ago, and now only have 2 (out of 15) nodes converted. Going all in wasn't my plan, but it was just too good. I have some experience with Nix on other OS's as well, as I am slowly rolling Nix out for developer environments on other Linux Distros and Mac.

view this post on Zulip Anders Johansson (Oct 28 2024 at 15:01):

Nice - I’ve been looking at it from the side lines for quite some time now before taking the decision to migrate from my ansible setup for my computer setup. And now roughly five days into it I’m almost done and can honestly say that I’m amazed on how awesomely it has been to learn.

view this post on Zulip FlakM (Oct 28 2024 at 17:01):

I've been daily driving NixOs for more then 2 years now. I deploy blog, home server and personal machine. It's absolutely irreplaceable for me now

view this post on Zulip Anders Johansson (Oct 28 2024 at 17:34):

@FlakM what made you decide on NixOS?

view this post on Zulip FlakM (Oct 28 2024 at 18:05):

If I recall correctly I got annoyed at jumping between machines with different software versions and missing configuration. But since then I've found out so many little use cases that made the whole effort worthwhile.

view this post on Zulip FlakM (Oct 28 2024 at 18:25):

@Anders Johansson kudos on the journey! Wait until a year from now you will come back and understand the system in 30 seconds :heart_eyes: Did you have any major problems with migrating?

view this post on Zulip Anders Johansson (Oct 28 2024 at 18:35):

@FlakM thank you :folded_hands: no real issues. The major ones was mostly figure out nix-darwin and home-manager. Once I did that it was pretty smooth sailing from that. Only thing left now is make the setup a little more modular so work both for my private and work computers.

view this post on Zulip FlakM (Oct 28 2024 at 19:19):

Btw to procrastinate from other work Im reading the PhD thesis describing nix and Nixos by Elco https://edolstra.github.io/pubs/nspfssd-lisa2004-final.pdf it's a fascinating read. Especially when I take into the consideration release year (20 years ago!)

view this post on Zulip FlakM (Oct 28 2024 at 19:21):

It's scary how much of the PITA still the deployment ecosystem is 20 years later

view this post on Zulip Anders Johansson (Oct 29 2024 at 04:45):

Nice - I’m in transition between positions so some great reading is most welcome 👍🏻

view this post on Zulip James McNally (Oct 29 2024 at 10:09):

I've dabbled with dev shells but not got as far as the OS. I'm still very lost on understanding the progression with flakes!

view this post on Zulip FlakM (Oct 29 2024 at 10:35):

That's a mess. Flakes should have become a non experimental feature long time ago.

view this post on Zulip Matthew Sanabria (Nov 01 2024 at 00:52):

Ya'll using NixOS or just Nix package manager?

view this post on Zulip FlakM (Nov 01 2024 at 06:51):

Nixos on Linux machines and nix on macs. My colleagues use nix on Ubuntu systems since they don't want to invest too much time into learning but still appreciate dev shells in our projects

view this post on Zulip Anders Johansson (Nov 01 2024 at 14:40):

Only nix on Mac as of now. Started to look into maybe use the arm port of Nixon on my arm Mac at home. Who knows where this rabbit hole will take me :nerd:

view this post on Zulip shaun smiley (Jan 12 2025 at 06:15):

James McNally said:

I've dabbled with dev shells but not got as far as the OS. I'm still very lost on understanding the progression with flakes!

We could probably start a new topic just for that. Once you get the "right" view of them, the extra value they add are totally worth it, and they actually simplify a lot of stuff. I don't use channels at all any more, and all of the exact versions of repos are pinned in the lock file (and version controlled), just like you'd expect with package-lock.json, cargo.lock etc.

view this post on Zulip Cole Cecil (Jan 18 2025 at 20:30):

I haven't used Nix, but on the topic of portable/reproducible machine configurations, I've been working on this project: https://github.com/colececil/familiar.sh.

I've made some good progress, but I haven't quite gotten to the MVP stage yet. I got distracted by other projects for a bit, but I'll be working on this again soon and hopefully doing an initial launch before too terribly long.

view this post on Zulip Tim Uckun (Jan 18 2025 at 20:54):

@Cole Cecil That looks like an ambitious project especially given ansible, puppet, chef and dozens of other things already exist.

I started writing a ruby script to manage my mac but put it down after a few days out of boredom more than anything. I was pretty trivial in ruby to manage the files, templates, brew packages etc but I wouldn't even attempt something that covers all the operating systems. That takes bravery.

Good luck to you.

view this post on Zulip Cole Cecil (Jan 18 2025 at 21:18):

Thanks, @Tim Uckun! I looked at several of those and others but was surprised not to find anything that felt like it quite fit my use case and worked across platforms. I also tried writing and maintaining a bash script for a bit, but it ended up feeling too clunky.

view this post on Zulip Alex Barnes (Jan 18 2025 at 21:46):

@Cole Cecil that looks great, I've been looking for something just like that, I was begining to consider writing something myself. Just wanted something simple where I could define what packages and config I want in a file or two. Will definitely give it a try when your at MVP stage.

view this post on Zulip Ron Waldon-Howe (Jan 18 2025 at 22:58):

I want a nix that is implemented in a memory safe language and doesn't require me to learn a bonkers single-purpose nix-only language to use

view this post on Zulip Ron Waldon-Howe (Jan 18 2025 at 22:59):

Anyone know if you can use flox without it involving any calls to nix and no use of the Nix language at all? https://aus.social/@jokeyrhyme/113846772546642254

view this post on Zulip Ron Waldon-Howe (Jan 18 2025 at 23:00):

https://www.tangram.dev/ and https://brioche.dev/ look intriguing


Last updated: Apr 04 2025 at 01:15 UTC