blob: 498aa438d424f0553d34e43c0b00ba306eaca5e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ config, lib, ... }:
{
virtualisation.vmVariant = {
services.getty.autologinUser = "root";
virtualisation = {
memorySize = 4 * 1024;
cores = 4;
forwardPorts = map (port: {
from = "host";
host.port = port + 8000;
guest.port = port;
}) config.networking.firewall.allowedTCPPorts;
};
};
}
|