nix-config/config/services/invidious.nix

41 lines
948 B
Nix
Raw Normal View History

2024-12-20 20:40:27 +01:00
{ globals, ... }:
2024-08-23 00:30:11 +02:00
{
services.invidious = {
enable = true;
2024-12-20 20:40:27 +01:00
inherit (globals.services.invidious) domain;
2024-10-10 19:11:21 +02:00
sig-helper.enable = true;
2024-08-23 00:30:11 +02:00
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;
};
2024-08-23 00:30:11 +02:00
};
};
environment.persistence."/persist".directories = [
{ directory = "/var/lib/private/invidious"; }
{
directory = "/var/lib/postgresql";
user = "postgres";
group = "postgres";
}
];
2024-12-20 20:40:27 +01:00
wireguard.services = {
client.via = "nucnix";
firewallRuleForNode.nucnix-nginx.allowedTCPPorts = [ 3000 ];
2024-08-23 00:30:11 +02:00
};
}