Skip to content

Commit 00e2703

Browse files
authored
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>
1 parent 5e96fb5 commit 00e2703

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy