2024-09-24 14:40:35 +02:00
|
|
|
{ config, modulesPath, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
fedicfg = config.fediversity.internal.garage;
|
|
|
|
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../fediversity
|
|
|
|
(modulesPath + "/virtualisation/qemu-vm.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
virtualisation.diskSize = 2048;
|
|
|
|
virtualisation.forwardPorts = [
|
|
|
|
{
|
|
|
|
from = "host";
|
|
|
|
host.port = fedicfg.rpc.port;
|
|
|
|
guest.port = fedicfg.rpc.port;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
from = "host";
|
2024-09-24 14:42:18 +02:00
|
|
|
host.port = fedicfg.web.internalPort;
|
|
|
|
guest.port = fedicfg.web.internalPort;
|
2024-09-24 14:40:35 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|