You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to build upon the docker.nix configuration provided in this repository directly from, instead of creating a Dockerfile. This worked well - I imported this repository as input and then imported and customized docker.nix with the supported variables.
However, I found that the extraPkgs parameter installs packages only in the root user's profile directory - /root/.nix-profile. This doesn't work for me, because I need to place a configuration file in /etc.
Proposed solution
I propose to add an additional parameter, e.g. extraBasePkgs that is appended to the contents parameter of pkgs.dockerTools.buildLayeredImageWithNixDb.
Alternative solutions
I tried to use .overrideAttrs on the output of pkgs.dockerTools.buildLayeredImageWithNixDb but failed. This might be an alternative.
Is your feature request related to a problem?
I would like to build upon the
docker.nix
configuration provided in this repository directly from, instead of creating aDockerfile
. This worked well - I imported this repository as input and then imported and customizeddocker.nix
with the supported variables.However, I found that the
extraPkgs
parameter installs packages only in the root user's profile directory -/root/.nix-profile
. This doesn't work for me, because I need to place a configuration file in/etc
.Proposed solution
I propose to add an additional parameter, e.g.
extraBasePkgs
that is appended to thecontents
parameter ofpkgs.dockerTools.buildLayeredImageWithNixDb
.Alternative solutions
I tried to use
.overrideAttrs
on the output ofpkgs.dockerTools.buildLayeredImageWithNixDb
but failed. This might be an alternative.Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: