Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

For anyone interested in learning Nix Flakes:

https://www.reddit.com/r/NixOS/comments/v2xpjm/big_list_of_f...



sort by: page size:

Hey, I wrote this!

For those curious, this is actually just first a series of Nix tutorials we planned to write: https://nixos.asia/en/nix-tutorial

The same goes for NixOS tutorial series: https://nixos.asia/en/nixos-tutorial


Ass that article says, it’s possible but awkward. It gets better with Flakes https://nixos.wiki/wiki/Flakes

If it's of any use: feel free to try it out on a Linux VM to see it's also the case, but the other day I helped a coworker set-up Nix on macOS and no daemon restart was necessary after enabling flakes.

I'd love to comment on the article other than it looking very thorough, but being a NixOS user means I'm cursed to not be able to tell what "obvious" thing you might have missed. What I can say is "congratulations on posting a beginner's course knowing full well you're cursed as well", and thanks for publishing your blog! I've found it to be a great resource multiple times.


I wrote a blog post on NixOS/home manager configurations with nix flakes. I make sure to link out to other resources for those who don’t have the whole background. See: https://jdisaacs.com/blog/nixos-config/

I'm submitting this with the hope that folks share other NixOS tutorials.

The reception on the nixos discourse is worth a look: https://discourse.nixos.org/t/introducing-flakehub/32044


Oh this is so interesting. I switched to NixOS (with Flakes) about a week ago and will really love to see more projects in the ecosystem.

I've written a few tutorials at https://nix.dev/, more to come in following months :)

If you can help me get a Nix flake running on Fly, I'll try it!

The Nix team, including the Nix author and chief developer of flakes (upstream in this thread, so be kind all), is also working right now on enabling the nix3 UI for non-flakes setups as well: https://discourse.nixos.org/t/2023-01-16-nix-team-meeting-mi...

Consensus is hard but I'm glad to see people coming together on this. Really looking forward to seeing the new Nix command and flakes move forward (independently)


I recently ported this to Nix if anyone is itching to try it.

https://github.com/NixOS/nixpkgs/pull/237151


Let's see how it fares against a Nix flake: https://github.com/hyprland-community/hyprland-nix

> I’ve since given up using search.nixos.org and now just grep the nixpkgs repository.

I still use search.nixos.org as well, but this is the single biggest step anyone can take to massively level up with Nix. Nixpkgs is an incredibly valuable collection of examples, both of how to use Nix and of how to configure the upstream services that NixOS supports.

It might sound ugly, or overinvolved, or intimidating, but once you add the Nixpkgs codebase to your list of reference documents, many things become way faster and easier.



Interesting- and there's also http://nixos.org/

I'm working on Nix tutorials at https://nix.dev - let me know what's missing :)

If you want to take nixos for a spin in your browser head to https://github.com/gitpod-io/template-nixos and mash the button.

Also https://nix.dev is one of the better learning resources. Over at https://GitHub.com/ghuntley/ghuntley you'll find a workshop I created on Nix.


I've been smitten by NixOS ever since I first tried it 2 years ago. Its the first carefree experience I've had with my system. As a side note, this result includes first tiny contributions of mine!

That said, I really hope the community gets their stuff together on Flakes. They're designated as experimental and official document doesn't recommend them, but all the cool kids are already using them everywhere and it is fracturing the efforts and alienating newcomers.

next

Legal | privacy