2024-11-11 17:25:42 +01:00
|
|
|
{
|
2024-12-17 17:14:27 +01:00
|
|
|
modulesPath,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-17 17:58:09 +02:00
|
|
|
|
2024-12-17 17:14:27 +01:00
|
|
|
{
|
2024-10-01 10:02:01 +02:00
|
|
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
2024-09-17 17:58:09 +02:00
|
|
|
|
2024-12-17 17:14:27 +01:00
|
|
|
fediversity = {
|
|
|
|
domain = "localhost";
|
2025-02-14 18:44:35 +01:00
|
|
|
peertube = {
|
|
|
|
enable = true;
|
2025-02-15 11:19:10 +01:00
|
|
|
secretsFile = pkgs.writeText "secret" "574e093907d1157ac0f8e760a6deb1035402003af5763135bae9cbd6abe32b24";
|
|
|
|
s3AccessKeyFile = pkgs.writeText "s3AccessKey" "GK1f9feea9960f6f95ff404c9b";
|
|
|
|
s3SecretKeyFile = pkgs.writeText "s3SecretKey" "7295c4201966a02c2c3d25b5cea4a5ff782966a2415e3a196f91924631191395";
|
2025-02-14 18:44:35 +01:00
|
|
|
};
|
2024-12-17 17:14:27 +01:00
|
|
|
};
|
|
|
|
|
2024-08-28 08:35:48 -04:00
|
|
|
services.peertube = {
|
|
|
|
settings = {
|
|
|
|
listen.hostname = "0.0.0.0";
|
|
|
|
instance.name = "PeerTube Test VM";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation.forwardPorts = [
|
|
|
|
{
|
|
|
|
from = "host";
|
|
|
|
host.port = 9000;
|
|
|
|
guest.port = 9000;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|