nixfiles/hosts/hetzner-vm/services/invidious.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2021-12-28 16:00:56 +00:00
{...}: {
services.invidious = {
enable = true;
port = 3000;
settings = {
full_refresh = true;
https_only = true;
popular_enabled = false;
statistics_enabled = true;
registration_enabled = true;
channel_threads = 2;
feed_threads = 2;
default_user_preferences = {
locale = "en-US";
region = "GB";
captions = ["English (auto-generated)" "English" ""];
dark_mode = true;
feed_menu = ["Subscriptions" "Popular"];
default_home = "Subscriptions";
max_results = 30;
annotations = true;
annotations_subscribed = true;
comments = [];
player_style = "invidious";
related_videos = true;
autoplay = true;
continue = false;
continue_autoplay = true;
quality = "hd720";
local = false;
};
};
};
networking.firewall.allowedTCPPorts = [ 3000 ];
}