Skip to content

Commit 00e2703

Browse files
authored
fix(flake.nix): add procps to nix dogfood image (coder#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 <[email protected]>
1 parent 5e96fb5 commit 00e2703

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@
281281
unzip
282282
zip
283283
gzip
284+
procps # free
284285
])
285286
++ oldAttrs.buildInputs;
286287
});

nix/docker.nix

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ let
5050
experimental-features = nix-command flakes
5151
'';
5252

53+
etcReleaseName = writeTextDir "etc/coderniximage-release" ''
54+
0.0.0
55+
'';
56+
5357
etcPamdSudoFile = writeText "pam-sudo" ''
5458
# Allow root to bypass authentication (optional)
5559
auth sufficient pam_rootok.so
@@ -271,6 +275,7 @@ let
271275
etcNixConf
272276
etcSudoers
273277
etcPamdSudo
278+
etcReleaseName
274279
(fakeNss.override {
275280
# Allows programs to look up the build user's home directory
276281
# https://github.com/NixOS/nix/blob/ffe155abd36366a870482625543f9bf924a58281/src/libstore/build/local-derivation-goal.cc#L906-L910

0 commit comments

Comments
 (0)