30 lines
601 B
Nix
30 lines
601 B
Nix
_: {
|
|
|
|
virtualisation.vmVariant = {
|
|
# virtualisation.diskImage = null;
|
|
# Boot with tmpfs as root
|
|
|
|
virtualisation = {
|
|
|
|
forwardPorts = [
|
|
{
|
|
from = "host";
|
|
host.port = 8888;
|
|
guest.port = 80;
|
|
}
|
|
];
|
|
graphics = false; # disables graphical output
|
|
memorySize = 1024;
|
|
diskImage = null;
|
|
# qemu.options = [ "-M microvm,x-option-roms=off,pit=off,pic=on,isa-serial=off" ];
|
|
};
|
|
services.getty = {
|
|
autologinUser = "root";
|
|
};
|
|
users.users = {
|
|
root = {
|
|
password = "";
|
|
};
|
|
};
|
|
};
|
|
}
|