NixOS made me stop dreading side projects
NixOS is making me less afraid
The author had long wanted a server-side RSS aggregator but avoided it because self-hosted services mean hours of maintenance and brittle reinstall procedures. With NixOS, a working FreshRSS deployment with backups took nine lines of Nix code, plus a dozen for the nginx reverse proxy, and has run hands-off for months. If the server dies, an identical replacement can be spun up in about 15 minutes — so trying new software now feels essentially free.
When we can do something like that, there is literally no reason to not just try the new software.
- s08148692
Coming back to Nix (and Linux in general) this year has been an absolute pleasure.
Not because it's suddenly got better, but because the learning curve has collapsed to a flat line. My problem with linux has always been how un-user friendly it is. Constant tinkering around with config files and googling how to fix problems. Now I just install claude code and tell it what I want my OS to be and how I want it to look.
- Cyph0n
+1. I personally have always wanted to write down my thoughts on NixOS in a long-ish form post.
But it’s just really hard to articulate. NixOS is such a step above any other distro that it becomes hard to convey exactly why this is the case. It is also because so many pieces work together in tandem - both above and below the covers so to speak - to make this the case.
There is really only one talk I have found that somewhat captures this, What Nix Can Do (and Can’t) by Matthew Croughan: https://youtu.be/6Le0IbPRzOE. Keep in mind that it’s a rapid fire-style talk with a ton of breadth, so it is natural to feel overwhelmed while watching if new to Nix :)
Also, here is a random dump of features that I have found both valuable and very difficult to achieve on other distros:
* Config rollback in bootloader to undo mistakes without needing to boot from recovery media
* Flake lockfiles to pin all config and packages
* Config layering: base config that applies to all machines, per-machine overrides, etc
* NixOS module system, very useful to conditionally enable functionality (e.g. subset of machines run Syncthing)
* Rebuild a host over SSH by copying over packages via nixos-rebuild
* Image builders i.e. Packer-lite (now in nixpkgs)
* Build a live CD/USB custom installer to quickly boot from with your own packages, user, dotfiles, etc
* NixOS integration testing framework (extremely powerful), makes package and config stability better under the hood in nixpkgs
* Build and run your con […]
- haolez
I don't want to bore my HackerNews fellows, so I'm sorry in advance, but wasn't there a lot of drama in the Nix community? I've read some time ago that a private company was buying parts of its infrastructure (or something like that) and forcing some changes upstream and people were not happy about it.
I'm interested in NixOS, but I'm at an age where I just want things to stay stable and change only when they really have to. I already have a lot of big mandatory changes from life itself, I don't need more :)
I'm writing this in good faith. I'm genuinely curious and interested in trying it again.
- scronkfinkle
A lot of folks have been praising the harmony of Claude code + nixOS. For those of you doing this, I would recommend you to ask your agent to switch your config to nix flakes. It's a much better paradigm for working with the versioning than the default channels interface. Additionally, you should ask your agent to look into home manager, if it hasn't done so already.
- opengrass
OK, but what's the init system again?
- clircle
Similar here, but I'm running rootless podman containers in Guix like this:
(oci-container-configuration
(environment
'("CRON_MIN=2,32"
"LISTEN=0.0.0.0:80"
"OIDC_ENABLED=0"))
(image "freshrss/freshrss:edge")
(log-file (container-log "freshrss"))
(extra-arguments
'("--pod=freshrss"))
(provision "freshrss")
(respawn? #t)
(volumes
'("...")))
- ronef
Your title is verbatim how Nix made me feel when I first started years ago. It does so many small things in a pure format that it was hard to immediately come up with the "key ROI" the larger industry expected. Did it just speed up dev envs? Did it just make my builds faster? Back then, a lot of folks barely cared or understood the impact of the deterministic and reproducible foundation using Nix sets. I used to hear a lot of "but that's a day 100 issue", "docker/(insert other tool) solved all of this already".
"less afraid" was the easiest way to put it :)
Disclosure, fully Nix pilled Ron here from flox.dev and the NixOS foundation.
- mikl
Same here. Reproducible configuration is amazing. Even a moderately complex app like Forgejo is easy to set a Nix module up for, with all the needed nginx/database/backup/etc. config nailed down and easily transferable to another machine if need be.