diff --git a/flake.nix b/flake.nix index 62260214f1d73..e5ce3d4a790af 100644 --- a/flake.nix +++ b/flake.nix @@ -281,6 +281,7 @@ unzip zip gzip + procps # free ]) ++ oldAttrs.buildInputs; }); diff --git a/nix/docker.nix b/nix/docker.nix index 785fb3283bde5..84c1a34e79bbe 100644 --- a/nix/docker.nix +++ b/nix/docker.nix @@ -50,6 +50,10 @@ let experimental-features = nix-command flakes ''; + etcReleaseName = writeTextDir "etc/coderniximage-release" '' + 0.0.0 + ''; + etcPamdSudoFile = writeText "pam-sudo" '' # Allow root to bypass authentication (optional) auth sufficient pam_rootok.so @@ -271,6 +275,7 @@ let etcNixConf etcSudoers etcPamdSudo + etcReleaseName (fakeNss.override { # Allows programs to look up the build user's home directory # https://github.com/NixOS/nix/blob/ffe155abd36366a870482625543f9bf924a58281/src/libstore/build/local-derivation-goal.cc#L906-L910