mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
🚧 wip: fixup the vm, add a wip vagrantfile just in case
Signed-off-by: dyn <oss+dyn@xtrm.me>
This commit is contained in:
15
vm/flake.nix
15
vm/flake.nix
@ -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
|
||||
|
||||
Reference in New Issue
Block a user