From 92883b400f7ecd85eba747ffffc08762a9b4e7c3 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Wed, 20 Mar 2024 00:50:51 +0100 Subject: [PATCH] snowflake: nix store in /dev/shm tmpfs This avoids an ever-growing nix store in the container. --- Containerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 1dd3b33..0c25cd1 100644 --- a/Containerfile +++ b/Containerfile @@ -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/ && \