From 90c0b018de0465bffe35fee0f86dadfab35b878f Mon Sep 17 00:00:00 2001 From: oddlama Date: Thu, 21 Nov 2024 19:51:59 +0100 Subject: [PATCH] chore: disable microvm guest optimizations which causes frequent qemu rebuilds and doesn't actually optimize a lot --- modules/guests/microvm.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/guests/microvm.nix b/modules/guests/microvm.nix index f5b4162..6d65f25 100644 --- a/modules/guests/microvm.nix +++ b/modules/guests/microvm.nix @@ -1,8 +1,6 @@ guestName: guestCfg: { - config, inputs, lib, - pkgs, ... }: let inherit @@ -34,6 +32,9 @@ in { # Give them some juice by default mem = mkDefault (1024 + 2048); + # This causes QEMU rebuilds which would remove 200MB from the closure but + # recompiling QEMU every deploy is worse. + optimize.enable = false; # Add a writable store overlay, but since this is always ephemeral # disable any store optimization from nix.