this post was submitted on 10 Dec 2024
7 points (88.9% liked)

Nix / NixOS

2492 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Howdy y'all non-developer trying to understand nix flakes.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] rutrum@lm.paradisus.day 9 points 10 months ago* (last edited 10 months ago) (1 children)

Flakes are just a mechanism of pinning dependencies to fixed versions. When you run a flake it doesnt matter if you're on 24.05, 24.11, or unstable, it'll produce the exact same output.

[โ€“] Laser@feddit.org 4 points 10 months ago

Yeah, they provide a reproducible environment for the modules.

However, one should know that there is a catch which can make flakes believe differently on different machines when updating inputs. That is when you have inputs in your flake that point to your flakes registry. Especially the system entries can trip you up