diff --git a/nixos/machines/default.nix b/nixos/machines/default.nix index c036de7..9cdda92 100644 --- a/nixos/machines/default.nix +++ b/nixos/machines/default.nix @@ -77,11 +77,10 @@ }; microvm.shares = [{ - source = "/data/vm_shares/${config.networking.hostName}/dnsmasq"; + source = "/var/lib/microvms/${config.networking.hostName}/shares/dnsmasq"; mountPoint = "/var/lib/dnsmasq"; tag = "dnsmasq"; proto = "virtiofs"; - socket = "dnsmasq.sock"; }]; }; }; @@ -99,11 +98,10 @@ }; microvm.shares = [{ - source = "/data/vm_shares/${config.networking.hostName}/docker_swarm"; - mountPoint = "/var/lib/docker/swarm"; - tag = "docker_swarm"; + source = "/var/lib/microvms/${config.networking.hostName}/shares/docker"; + mountPoint = "/var/lib/docker"; + tag = "docker"; proto = "virtiofs"; - socket = "docker_swarm.sock"; }]; networking = { @@ -135,11 +133,10 @@ lab.vm.id = 2; microvm.shares = [{ - source = "/data/vm_shares/${config.networking.hostName}/docker_swarm"; - mountPoint = "/var/lib/docker/swarm"; - tag = "docker_swarm"; + source = "/var/lib/microvms/${config.networking.hostName}/shares/docker"; + mountPoint = "/var/lib/docker"; + tag = "docker"; proto = "virtiofs"; - socket = "docker_swarm.sock"; }]; networking = { @@ -171,11 +168,10 @@ lab.vm.id = 3; microvm.shares = [{ - source = "/data/vm_shares/${config.networking.hostName}/docker_swarm"; - mountPoint = "/var/lib/docker/swarm"; - tag = "docker_swarm"; + source = "/var/lib/microvms/${config.networking.hostName}/shares/docker"; + mountPoint = "/var/lib/docker"; + tag = "docker"; proto = "virtiofs"; - socket = "docker_swarm.sock"; }]; networking = {