nix-config/config/services/invidious.nix
2024-10-10 19:11:21 +02:00

41 lines
963 B
Nix

{ config, ... }:
{
services.invidious = {
enable = true;
domain = "yt.${config.secrets.secrets.global.domains.web}";
sig-helper.enable = true;
settings = {
external_port = 443;
https_only = true;
popular_enabled = false;
default_user_preferences = {
dark_mode = "dark";
feed_menu = [
"Subscriptions"
"Playlists"
"Trending"
];
default_home = "Subscriptions";
player_style = "youtube";
quality = "dash";
save_player_pos = true;
local = true;
extend_desc = true;
};
};
};
environment.persistence."/persist".directories = [
{ directory = "/var/lib/private/invidious"; }
{
directory = "/var/lib/postgresql";
user = "postgres";
group = "postgres";
}
];
wireguard.elisabeth = {
client.via = "elisabeth";
firewallRuleForNode.elisabeth.allowedTCPPorts = [ 3000 ];
};
}