Compare commits

...

2 commits

Author SHA1 Message Date
92883b400f snowflake: nix store in /dev/shm tmpfs
This avoids an ever-growing nix store in the container.
2024-03-20 00:50:51 +01:00
7473d91888 Revert "snowflake: pin image -- reduces disk usages SIGNIFICANTLY"
That wasn't the cause of the disk usage..

This reverts commit fb89dd1c45.
2024-03-20 00:50:22 +01:00

View file

@ -8,13 +8,14 @@
# SSH. The token should be passed as the GIT_PASSWORD environment variable.
# [1] https://git.caspervk.net/user/settings/applications
FROM nixos/nix:2.21.0
FROM nixos/nix:latest
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/ && \