nix/container/Yt.nix

27 lines
690 B
Nix
Raw Normal View History

2024-06-09 23:35:53 +03:00
{ container, ... } @args: let
cfg = container.config.yt;
in {
containers.yt = container.mkContainer cfg {
config = { pkgs, ... }: container.mkContainerConfig cfg {
services.invidious = {
enable = true;
domain = cfg.domain;
port = cfg.port;
nginx.enable = false;
database = {
port = container.config.postgres.port;
host = container.config.postgres.address;
createLocally = false;
passwordFile = "${pkgs.writeText "InvidiousDbPassword" "invidious"}";
};
settings = {
admins = [ "root" ];
captcha_enabled = false;
check_tables = true;
registration_enabled = false;
};
};
};
};
}