From ee73f0b701742bf1134aa7bb34a5347e3a8f8a0d Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 18 Mar 2024 22:52:13 +0100 Subject: [PATCH] c3d2-web: mount a bigger tmpfs on /tmp --- hosts/c3d2-web/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/c3d2-web/default.nix b/hosts/c3d2-web/default.nix index 6ced745a..91afb568 100644 --- a/hosts/c3d2-web/default.nix +++ b/hosts/c3d2-web/default.nix @@ -3,7 +3,16 @@ { microvm = { vcpu = 4; - mem = 2 * 1024; # drone-ssh-runner clones the git repo which requires some RAM + # drone-ssh-runner clones the git repo into tmpfs which requires + # some RAM + mem = 2 * 1024; + }; + + # drone-ssh-runner clones into /tmp which needs to be bigger than + # the default rootfs tmpfs + boot.tmp = { + useTmpfs = true; + tmpfsSize = "80%"; }; c3d2.deployment = {