microvm: share nix store with host (significantly smaller builds)
This commit is contained in:
parent
2ba227f078
commit
94a3542161
1 changed files with 8 additions and 0 deletions
|
|
@ -2,5 +2,13 @@
|
|||
{
|
||||
networking.hostName = "veneficium-microvm-vaultwarden";
|
||||
microvm.hypervisor = "firecracker";
|
||||
microvm.shares = [
|
||||
{
|
||||
source = "/nix/store";
|
||||
mountPoint = "/nix/.ro-store";
|
||||
tag = "ro-store";
|
||||
proto = "virtiofs";
|
||||
}
|
||||
];
|
||||
system.stateVersion = config.system.nixos.version;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue