Skip to content

docker: add docu references & remove duplicate code #13328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

h0nIg
Copy link
Contributor

@h0nIg h0nIg commented Jun 5, 2025

Motivation

we build a docker image with nix.
docker.nix is complex + without docu references and docker.nix looks like a template rather than a reuse function. General functionality which do not need a refactoring can get moved to nixpkgs, in order to avoid code duplication.

Context

https://discourse.nixos.org/t/how-to-build-a-docker-image-with-a-working-nix-inside-it/32960

I looked at the source code and expected to find maybe 200 lines to bootstrap Nix but instead I found almost 800 lines and too many things happening for how seemingly simple the end goal is.

Requires NixOS/nixpkgs#414221 to be merged

@h0nIg h0nIg requested a review from edolstra as a code owner June 5, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant