snowflake: nix store in /dev/shm tmpfs

This avoids an ever-growing nix store in the container.
This commit is contained in:
Casper V. Kristensen 2024-03-20 00:50:51 +01:00
parent 7473d91888
commit 92883b400f

View file

@ -14,7 +14,8 @@ CMD git clone https://caspervk:$GIT_PASSWORD@git.caspervk.net/caspervk/nixos.git
cd nixos/ && \
git config user.email "snowflake@caspervk.net" && \
git config user.name "snowflake" && \
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file && \
# store in /dev/shm tmpfs to avoid an ever-growing nix store in the container
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file --store /dev/shm && \
git push && \
cd .. && \
rm -rf nixos/ && \