1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: add writable store overlay in microvms

This commit is contained in:
oddlama 2023-05-12 01:45:00 +02:00
parent a543394fa8
commit 2b4449569f
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 10 additions and 0 deletions

View file

@ -22,6 +22,7 @@
];
directories = [
"/var/log"
"/var/lib/nixos"
];
};
}

View file

@ -72,6 +72,15 @@
];
};
# Add a writable store overlay, but since this is always ephemeral
# disable any store optimization from nix.
microvm.writableStoreOverlay = "/nix/.rw-store";
nix = {
settings.auto-optimise-store = mkForce false;
optimise.automatic = mkForce false;
gc.automatic = mkForce false;
};
extra.networking.renameInterfacesByMac.${vmCfg.linkName} = vmCfg.mac;
systemd.network.networks = {