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
 

I agree that dockerfile's are not very reproducible. But honestly, that's not how most people use it. I believe most people just pull the already built image which is very reproducible. Anyways, I found this video interesting and thought I'd share it and get your guys thoughts.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

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.

[–] [email protected] 2 points 1 year ago

You're a good nugget! ♥ Thanks a lot!!