nix/container/Yt.nix

29 lines
757 B
Nix
Raw Normal View History

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;
2024-06-23 15:29:20 +03:00
external_port = 443;
https_only = true;
2024-06-09 23:35:53 +03:00
};
};
};
};
}