Install tools to prepare nixos rootfs in container

This commit is contained in:
jiangjianfeng 2025-11-26 06:48:08 +00:00 committed by Tate, Hongliang Tian
parent 7564314de3
commit 79b5e2f0ee
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,7 @@ RUN apt update && apt-get install -y --no-install-recommends \
clang-format `# formatting general tests` \
cpio \
cpuid \
dosfstools \
exfatprogs \
file \
grub-efi-amd64-bin \
@ -62,6 +63,7 @@ RUN apt update && apt-get install -y --no-install-recommends \
jq \
net-tools \
openssh-server \
parted \
pkg-config \
socat \
strace \

View File

@ -14,6 +14,7 @@ RUN sh <(curl -L https://nixos.org/nix/install) --daemon --yes \
&& nix-channel --add https://nixos.org/channels/nixos-25.05 nixpkgs \
&& nix-channel --update \
&& nix-env -iA nixpkgs.nixfmt \
&& nix-env -iA nixpkgs.nixos-install-tools \
&& rm /nix/var/nix/gcroots/auto/* \
&& nix-collect-garbage -d