2024-03-11 15:46:27 +01:00
|
|
|
{ config, ... }: {
|
|
|
|
imports = [
|
|
|
|
../../common/optional/services/nginx.nix
|
|
|
|
../../common/optional/services/postgres.nix
|
|
|
|
];
|
|
|
|
|
2024-03-11 16:08:32 +01:00
|
|
|
sops.secrets.invidious_hmac_key.sopsFile = ../secrets.yaml;
|
|
|
|
services.nginx.virtualHosts.${config.services.invidious.domain} =
|
|
|
|
config.satellite.proxy config.services.invidious.port { };
|
|
|
|
|
2024-03-11 15:46:27 +01:00
|
|
|
services.invidious = {
|
|
|
|
enable = true;
|
|
|
|
domain = "yt.moonythm.dev";
|
|
|
|
port = 8414;
|
2024-03-11 16:10:44 +01:00
|
|
|
hmacKeyFile = config.sops.secrets.invidious_hmac_key.path;
|
2024-03-11 15:46:27 +01:00
|
|
|
|
|
|
|
nginx.enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
captcha_enabled = false;
|
|
|
|
admins = [ "prescientmoon" ];
|
|
|
|
default_user_preferences = {
|
|
|
|
default_home = "Subscriptions";
|
|
|
|
max_results = 40;
|
|
|
|
comments = [ "youtube" "reddit" ];
|
|
|
|
save_player_pos = true;
|
|
|
|
automatic_instance_redirect = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|