forked from mirrors_public/oddlama_nix-config
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 = [
|
directories = [
|
||||||
"/var/log"
|
"/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;
|
extra.networking.renameInterfacesByMac.${vmCfg.linkName} = vmCfg.mac;
|
||||||
|
|
||||||
systemd.network.networks = {
|
systemd.network.networks = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue