dockerTools.examples.nix: set USER in the container config

A USER is required by Nix.
See 9348f9291e/src/libutil/util.cc (L478).
This commit is contained in:
Antoine Eiche 2019-12-05 09:45:51 +01:00
parent cc6cf0a96a
commit 09a669478f

View File

@ -117,7 +117,12 @@ rec {
pkgs.nix pkgs.nix
]; ];
config = { config = {
Env = [ "NIX_PAGER=cat" ]; Env = [
"NIX_PAGER=cat"
# A user is required by nix
# https://github.com/NixOS/nix/blob/9348f9291e5d9e4ba3c4347ea1b235640f54fd79/src/libutil/util.cc#L478
"USER=nobody"
];
}; };
}; };