1
1
Fork 1
mirror of https://github.com/oddlama/nixos-extra-modules.git synced 2025-10-10 22:00:39 +02:00

chore: disable microvm guest optimizations which causes frequent qemu rebuilds and doesn't actually optimize a lot

This commit is contained in:
oddlama 2024-11-21 19:51:59 +01:00
parent 0de9c0751b
commit 90c0b018de
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -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.