2024-06-14 02:58:39 +03:00
|
|
|
{ container, pkgs, ... } @args: let
|
2024-06-09 23:35:53 +03:00
|
|
|
cfg = container.config.yt;
|
|
|
|
in {
|
|
|
|
containers.yt = container.mkContainer cfg {
|
2024-06-14 02:58:39 +03:00
|
|
|
config = { ... }: container.mkContainerConfig cfg {
|
2024-06-09 23:35:53 +03:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|