this post was submitted on 08 Sep 2023
33 points (97.1% liked)

Nix / NixOS

1766 readers
6 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] 1 points 1 year ago (1 children)

Thanks for the link and tips! Do you have something similar specific to flakes? The basic concepts seem straight forward and actually chatgpt was of great help so far - but I can't get the feet on the ground with these fancy new packages :D

[–] [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!!