fix(flake.nix): add procps to nix dogfood image (#16607)

Add procps to flake.nix and release name to Docker image

Adds the `procps` package to flake.nix to enable the `free` command, and includes a release name file in the Docker image at `/etc/coderniximage-release`.

Change-Id: I85432acc06a204229fa3675e0020bd3acacf775a
Signed-off-by: Thomas Kosiewski <tk@coder.com>
This commit is contained in:
Thomas Kosiewski
2025-02-18 16:24:47 +01:00
committed by GitHub
parent 5e96fb5985
commit 00e2703aca
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -281,6 +281,7 @@
unzip unzip
zip zip
gzip gzip
procps # free
]) ])
++ oldAttrs.buildInputs; ++ oldAttrs.buildInputs;
}); });
+5
View File
@@ -50,6 +50,10 @@ let
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
etcReleaseName = writeTextDir "etc/coderniximage-release" ''
0.0.0
'';
etcPamdSudoFile = writeText "pam-sudo" '' etcPamdSudoFile = writeText "pam-sudo" ''
# Allow root to bypass authentication (optional) # Allow root to bypass authentication (optional)
auth sufficient pam_rootok.so auth sufficient pam_rootok.so
@@ -271,6 +275,7 @@ let
etcNixConf etcNixConf
etcSudoers etcSudoers
etcPamdSudo etcPamdSudo
etcReleaseName
(fakeNss.override { (fakeNss.override {
# Allows programs to look up the build user's home directory # 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 # https://github.com/NixOS/nix/blob/ffe155abd36366a870482625543f9bf924a58281/src/libstore/build/local-derivation-goal.cc#L906-L910