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:
parent
a543394fa8
commit
2b4449569f
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
];
|
||||
directories = [
|
||||
"/var/log"
|
||||
"/var/lib/nixos"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue