From ec3b34a36808d7be82addd1259d1dcb006256394 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 21 May 2023 23:39:53 +0200 Subject: [PATCH] fix: mount vm datasets under /vms to avoid accidental shadowing on creation --- hosts/ward/default.nix | 2 -- modules/microvms.nix | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hosts/ward/default.nix b/hosts/ward/default.nix index 3b4faf5..ec90811 100644 --- a/hosts/ward/default.nix +++ b/hosts/ward/default.nix @@ -1,7 +1,5 @@ { config, - inputs, - lib, nixos-hardware, pkgs, ... diff --git a/modules/microvms.nix b/modules/microvms.nix index ffb2098..48bf1e8 100644 --- a/modules/microvms.nix +++ b/modules/microvms.nix @@ -437,8 +437,8 @@ in { mountpoint = mkOption { type = types.str; - default = "/persist/vms/${name}"; - description = mdDoc "The host's mountpoint for the vm's dataset (will be shared via virtofs as /persist in the vm)"; + default = "/vms/${name}"; + description = mdDoc "The host's mountpoint for the vm's dataset (will be shared via virtiofs as /persist in the vm)"; }; };