this post was submitted on 09 Oct 2025
6 points (66.7% liked)

Nix / NixOS

2558 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] wewbull@feddit.uk 6 points 2 months ago (3 children)

Flakes should never have happened the way that they did IMHO. The situation it's left the project in is awful. It's stuck. They can't move forward and accept flakes because they undermine some fundamental things. They can't move backwards and remove them or even make breaking changes because they're in such widespread use.

[–] Piatro@programming.dev 6 points 2 months ago

When I looked into nix a year or two ago I was directed to use flakes by half of the documentation while the other half told me to not to use them since they were experimental. Ended up going back to what I knew, since, you know, installing things was a pretty solved problem.

[–] Ferk@programming.dev 3 points 2 months ago* (last edited 2 months ago) (2 children)

As someone who hasn't touch base with Nix for a long time: what are "flakes"?

[–] rozodru@piefed.social 4 points 2 months ago

flakes, in the most basic terms, is a solution to "well it works on my machine".

So say you develop something within a flake, you can then take that flake and reproduce it 100% on whatever machine you choose. so what ever your building in it if it worked on your machine, it's going to work on all machines.

It's also good for configuring your NixOS. your configs are within the flake and if something happens to your system or you want to replicate your system completely on another machine you can. i.e. you push your nixos config to a git repo and then you can clone it where ever and now you have your complete OS setup somewhere else. Like say if your system borks and you need to reinstall Arch or Ubuntu or whatever it will take awhile to get it set up completely has you had it before. With NixOS and Flakes it's like 10minutes tops to get back to where you were.

[–] ImgurRefugee114@reddthat.com 1 points 1 month ago* (last edited 1 month ago)

TL;DR lockfile with inputs (deps like nixpkgs) and consumable outputs (packages, shells, system)

[–] ImgurRefugee114@reddthat.com 1 points 1 month ago* (last edited 1 month ago) (1 children)

I like flakes. They solve several problems and are convenient. Only oddity ive hit is that theyre a subset of the nix language. What am I missing? What would forward look like?

[–] wewbull@feddit.uk 2 points 1 month ago

Have a read of the thoughts of somebody with closer ties than myself.