🔨」 fix: fixed vm now virtualbox is working

This commit is contained in:
2025-08-29 13:45:51 +02:00
parent 24a8d64baa
commit 6aad048a9f
2 changed files with 19 additions and 1 deletions

View File

@ -56,6 +56,16 @@
"libvirtd"
];
};
users.users.adjoly = {
password = "test";
shell = pkgs.fish;
extraGroups = [
"wheel"
"libvirtd"
];
isNormalUser = true;
};
programs.fish.enable = true;
services = {
getty.autologinUser = "root";
@ -84,6 +94,7 @@
enable32Bit = true;
};
virtualisation.virtualbox.host.enable = true;
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
programs = {
zsh = {

View File

@ -35,7 +35,12 @@
};
format = "vm";
};
vm = generate-vm [ ./configuration.nix ];
vm = generate-vm [
./configuration.nix
{
virtualisation.diskSize = 20 * 1024;
}
];
in
{
inherit vm;
@ -59,6 +64,7 @@
-enable-kvm \
-m 8G \
-smp 4\
-cpu host \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd)/..,mount_tag=host0,security_model=mapped-xattr,id=host0
'';
in
@ -76,6 +82,7 @@
-nographic \
-m 8G \
-smp 4 \
-cpu host \
-virtfs local,path=$(${pkgs.coreutils}/bin/pwd)/..,mount_tag=host0,security_model=mapped-xattr,id=host0
'';
in