🚧 wip: fixup the vm, add a wip vagrantfile just in case

Signed-off-by: dyn <oss+dyn@xtrm.me>
This commit is contained in:
dyn
2025-12-17 01:27:04 +01:00
parent ab440e31c0
commit 78051f16d8
5 changed files with 60 additions and 44 deletions

View File

@ -60,11 +60,12 @@
let
scriptName = "run-${hostname}-vm";
script = pkgs.writeShellScriptBin "${scriptName}" ''
${selfPkgs.vm}/bin/run-${hostname}-vm \
set -x
source ${selfPkgs.vm}/bin/run-${hostname}-vm \
-enable-kvm \
-m 8G \
-smp 4\
-cpu host \
-m 8G \
-smp 4 \
-cpu host \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd)/..,mount_tag=host0,security_model=mapped-xattr,id=host0
'';
in
@ -80,9 +81,9 @@
${selfPkgs.vm}/bin/run-${hostname}-vm \
-enable-kvm \
-nographic \
-m 8G \
-smp 4 \
-cpu host \
-m 8G \
-smp 4 \
-cpu host \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd)/..,mount_tag=host0,security_model=mapped-xattr,id=host0
'';
in