Heya, been hearing about NixOS for a long time now, mostly from the peeps over at the Linux Unplugged podcast. So was thinking about jumping onto the nix-train, however it seems like it has a learning curve. Does anyone have any good learning resources, blog-posts, guides, whatever beans that you used to get started with NixOS?
Appreciate any tips ❄️
Im on my own NixOS journey right now, so i cant fully vouch for all this yet. Here are my bookmarks for Nix/NixOS learning resources:
- Zero to Nix: Nix and flakes quick start guide.
- Nix Pills: Introduction to Nix package manager and nixpkgs collection.
- A tour of Nix: Introduction to the Nix language.
- NixOS & Flakes book: Book about NixOS and flakes.
- NixOS in production book: Book about using NixOS in production environment (incomplete).
- Nix dev: Documentation
- Nix-notes github repo: Some notes about a bunch of topics.
- Nix from first principles (Flake edition) blog
Apart from all this, ive learned the most from a mix of looking at other people’s configurations and reading source code. The documentation is super messy, especially if you want to make use of flakes (which i personally recommend from the get go).
+1 for these! I’d also add https://nixos.asia/en
NixOS docs themselves are a tad lax, but it will get better.
Learning nix itself is also important:
Just this morning I was having issues with a wacky dual-boot install with NixOS and Windows sharing an EFI partition, and quite interestingly ChatGPT and I were able to troubleshoot the process and get it resolved in under half and hour. I was really impressed by the specific configurations it was giving me for my /etc/nixos/configuration.nix , so that is also another resource you may consider leaning on when you run into walls in other documentation sources.
Thanks for the tip, and nice to hear about your experience too 👍
This is also a pretty good one: https://nixos-and-flakes.thiscute.world/ just ignore the domain name, the guy is explaining stuff very well.
I learned a ton from this, it’s kind of “The Book” I guess. For OP, there’s a pretty massive series of blog posts I fumbled along with too, https://ianthehenry.com/posts/how-to-learn-nix/introduction/ though it’s a couple years old.
Thank you both ✨
deleted by creator
https://nix.dev/ and https://zero-to-nix.com/ are the best resources imo.
If you’re interested in using flakes, this repo was helpful when learning how to get my first system configurations set up in an organized way https://github.com/Misterio77/nix-starter-configs
I’ve actually been getting into NixOS recently; interested in replacing an old server I’ve had for like 10 years with something I can just build from a bunch of config files.
Can confirm it is confusing and I have no idea how anything works. :D
In my searches, I’ve come across https://nixos.org/guides/nix-pills/ , which I’ve gone through a few chapters of - seems good so far.
Since you’re listening to LUP anyways, the Nix Nerds room on their Matrix is a great resource as well.
The #nix:nixos.org room on matrix is a great place to ask questions if you get stuck.
After you’re done with the initial setup, I’ve found looking for nix code on GitHub to be very useful for seeing how to do things.