staging: add interfaces and shares

This commit is contained in:
Astro 2022-05-15 02:04:01 +02:00
parent 92aad1bd98
commit 00903e5eec

View File

@ -15,6 +15,32 @@
vcpu = 4;
mem = 4096;
hypervisor = "cloud-hypervisor";
interfaces = [ {
type = "tap";
id = "staging-dh";
mac = "00:de:5b:f9:e2:3d";
} ];
shares = [ {
source = "/nix/store";
mountPoint = "/nix/.ro-store";
tag = "store";
proto = "virtiofs";
socket = "store.socket";
} {
source = "/var/lib/microvms/data-hoarder-staging/etc";
mountPoint = "/etc";
tag = "etc";
proto = "virtiofs";
socket = "etc.socket";
} {
source = "/var/lib/microvms/data-hoarder-staging/var";
mountPoint = "/var";
tag = "var";
proto = "virtiofs";
socket = "var.socket";
} ];
};
networking.hostName = "staging-data-hoarder"; # Define your hostname.