1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +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.version" = nix.version;
"org.opencontainers.image.description" = "Nix container image"; "org.opencontainers.image.description" = "Nix container image";
}, },
Cmd ? [ (lib.getExe bashInteractive) ],
# Default Packages # Default Packages
nix, nix,
bashInteractive, bashInteractive,
@ -359,8 +360,7 @@ dockerTools.buildLayeredImageWithNixDb {
''; '';
config = { config = {
inherit Labels; inherit Cmd Labels;
Cmd = [ (lib.getExe bashInteractive) ];
User = "${toString uid}:${toString gid}"; User = "${toString uid}:${toString gid}";
Env = [ Env = [
"USER=${uname}" "USER=${uname}"