this post was submitted on 08 Sep 2023
33 points (97.1% liked)
Nix / NixOS
1745 readers
8 users here now
Main links
Videos
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I learned to use them by looking at repos online that came with a flake.nix.
Also there’s this blog article that was helpful getting started: https://tonyfinn.com/blog/nix-from-first-principles-flake-edition/nix-7-what-about-flakes-then/
Flakes aren’t much different from regular nix configs, except that they explicitly declare their sources by url. Rather than using whatever “home-manager” your system has on it, the flake says “go get home-manager from this location and use it”.
The extra level of control makes for more reproducible configs by isolating dependencies from the system paths. At least in theory.
You're a good nugget! ♥ Thanks a lot!!