From a5199290d445dc15ede05d205fb4572ad3b1123d Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 24 Oct 2024 11:11:32 +0200 Subject: [PATCH] materusPC: mount windows disk to non vfio vm --- configurations/host/materusPC/vm/win-vfio/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configurations/host/materusPC/vm/win-vfio/default.nix b/configurations/host/materusPC/vm/win-vfio/default.nix index 36d9e09..610c5cc 100644 --- a/configurations/host/materusPC/vm/win-vfio/default.nix +++ b/configurations/host/materusPC/vm/win-vfio/default.nix @@ -174,6 +174,17 @@ in fi + + if [ ''$1 = "windows" ]; then + if [ ''$2 = "prepare" ] && [ ''$3 = "begin" ]; then + systemctl stop windows-share-mount.service + fi + + if [ ''$2 = "release" ] && [ ''$3 = "end" ]; then + systemctl start windows-share-mount.service + fi + fi + ''; };