init
This commit is contained in:
commit
dc5069e9b2
7 changed files with 323 additions and 0 deletions
32
vm-variant.nix
Normal file
32
vm-variant.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
_: {
|
||||
|
||||
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;
|
||||
};
|
||||
users.users = {
|
||||
root = {
|
||||
password = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue