diff --git a/machines/configuration.nix b/machines/configuration.nix index 7623051..5b69f0a 100644 --- a/machines/configuration.nix +++ b/machines/configuration.nix @@ -45,12 +45,32 @@ let inputs.microvm.nixosModules.microvm { microvm = { - hypervisor = "qemu"; - shares = [ { - tag = "ro-store"; - source = "/nix/store"; - mountPoint = "/nix/.ro-store"; - } ]; + hypervisor = "cloud-hypervisor"; + mem = 2560; + shares = [ + { + source = "/nix/store"; + mountPoint = "/nix/.ro-store"; + tag = "store"; + proto = "virtiofs"; + socket = "store.socket"; + } + { + source = "/var/lib/microvms/${hostName}/etc"; + mountPoint = "/etc"; + tag = "etc"; + proto = "virtiofs"; + socket = "etc.socket"; + } + { + source = "/var/lib/microvms/${hostName}/var"; + mountPoint = "/var"; + tag = "var"; + proto = "virtiofs"; + socket = "var.socket"; + } + ]; + interfaces = [ { type = "tap";