1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

docker: expose config.Cmd as parameter

This commit is contained in:
Pol Dellaiera 2025-06-15 23:04:50 +02:00
parent 18dc96269d
commit bb44347fac

View file

@ -26,6 +26,7 @@
"org.opencontainers.image.version" = nix.version;
"org.opencontainers.image.description" = "Nix container image";
},
Cmd ? [ (lib.getExe bashInteractive) ],
# Default Packages
nix,
bashInteractive,
@ -359,8 +360,7 @@ dockerTools.buildLayeredImageWithNixDb {
'';
config = {
inherit Labels;
Cmd = [ (lib.getExe bashInteractive) ];
inherit Cmd Labels;
User = "${toString uid}:${toString gid}";
Env = [
"USER=${uname}"