2024-08-28 14:35:48 +02:00
|
|
|
{ pkgs, modulesPath, ... }: {
|
2024-09-17 17:58:09 +02:00
|
|
|
|
2024-10-01 10:02:01 +02:00
|
|
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
2024-09-17 17:58:09 +02:00
|
|
|
|
2024-08-28 14:35:48 +02:00
|
|
|
services.peertube = {
|
|
|
|
enableWebHttps = false;
|
|
|
|
settings = {
|
|
|
|
listen.hostname = "0.0.0.0";
|
|
|
|
instance.name = "PeerTube Test VM";
|
|
|
|
};
|
|
|
|
# TODO: use agenix
|
|
|
|
secrets.secretsFile = pkgs.writeText "secret" ''
|
|
|
|
574e093907d1157ac0f8e760a6deb1035402003af5763135bae9cbd6abe32b24
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.forwardPorts = [
|
|
|
|
{
|
|
|
|
from = "host";
|
|
|
|
host.port = 9000;
|
|
|
|
guest.port = 9000;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|