35 lines
610 B
Nix
35 lines
610 B
Nix
_: {
|
|
|
|
virtualisation.vmVariant = {
|
|
# virtualisation.diskImage = null;
|
|
# Boot with tmpfs as root
|
|
|
|
fileSystems."/" = {
|
|
fsType = "tmpfs";
|
|
options = [
|
|
"defaults"
|
|
"size=1024M"
|
|
];
|
|
};
|
|
virtualisation = {
|
|
|
|
forwardPorts = [
|
|
{
|
|
from = "host";
|
|
host.port = 8888;
|
|
guest.port = 80;
|
|
}
|
|
];
|
|
graphics = false; # disables graphical output
|
|
memorySize = 1024;
|
|
};
|
|
services.getty = {
|
|
autologinUser = "root";
|
|
};
|
|
users.users = {
|
|
root = {
|
|
password = "";
|
|
};
|
|
};
|
|
};
|
|
}
|