mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-10-13 18:44:45 +02:00
「🔨」 fix: fixed vm now virtualbox is working
This commit is contained in:
@ -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 = {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user