26 lines
465 B
Nix
26 lines
465 B
Nix
|
{ 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";
|
||
|
host.port = fedicfg.web.port;
|
||
|
guest.port = fedicfg.web.port;
|
||
|
}
|
||
|
];
|
||
|
}
|