Nicolas Jeannerod
e9b5de893d
Co-authored-by: Taeer Bar-Yam <taeer.bar-yam@moduscreate.com> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> Reviewed-on: #26 Co-authored-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com> Co-committed-by: Nicolas “Niols” Jeannerod <nicolas.jeannerod@moduscreate.com>
25 lines
532 B
Nix
25 lines
532 B
Nix
{ pkgs, modulesPath, ... }: {
|
|
|
|
imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ];
|
|
|
|
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;
|
|
}
|
|
];
|
|
}
|