demo-vm/vm-variant.nix
2025-07-10 01:34:36 -04:00

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 = "";
};
};
};
}