nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

Distribute base container image

Open dacevedo12 opened this issue 7 months ago • 5 comments

Akin to https://hub.docker.com/r/nixos/nix but using detsys nix

dacevedo12 avatar May 09 '25 19:05 dacevedo12

This would be very useful for environment parity. I am starting to use detsys Nix, and would like to easily make my production applications and GitLab CI jobs to use it as well.

dsalaza4 avatar May 09 '25 19:05 dsalaza4

This would be very useful!

alejolagosm avatar May 09 '25 20:05 alejolagosm

@grahamc Hi!

Are there any updates on this?

dsalaza4 avatar Jul 28 '25 21:07 dsalaza4

So, one reason we haven't done this yet is because we can't easily get FlakeHub authentication and FlakeHub Cache to work inside the container. Is that an important property to preserve, or would simply putting the non-daemon Nix part in a container be sufficient?

grahamc avatar Jul 29 '25 21:07 grahamc

So, one reason we haven't done this yet is because we can't easily get FlakeHub authentication and FlakeHub Cache to work inside the container. Is that an important property to preserve, or would simply putting the non-daemon Nix part in a container be sufficient?

For our specific use case, just having the non-daemon nix part would be enough for now.

One important thing to keep would be the nixbld* users and groups structure, just like current nixos/nix container does.

dsalaza4 avatar Jul 29 '25 21:07 dsalaza4

Is running the CLI install command on an ubuntu base image problematic? Or alpine?

silviogutierrez avatar Nov 25 '25 18:11 silviogutierrez