29 lines
763 B
Nix
29 lines
763 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.invidious = {
|
|
#package = pkgs.callPackage /root/invidious {
|
|
# lsquic = pkgs.callPackage /root/invidious/lsquic.nix {};
|
|
#};
|
|
enable = true;
|
|
port = 3001;
|
|
database = {
|
|
createLocally = false;
|
|
host = "postgres";
|
|
passwordFile = "/etc/nixos/keys/invidious-dbpassword";
|
|
};
|
|
settings = {
|
|
admins = [ "mc-fucker" ];
|
|
popular_enabled = false;
|
|
default_user_preferences = {
|
|
feed_menu = [ "Trending" "Subscriptions" "Playlists" ];
|
|
};
|
|
};
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ config.services.invidious.port ];
|
|
systemd.services.invidious.serviceConfig = {
|
|
Restart = "always";
|
|
RestartSec = "2s";
|
|
};
|
|
}
|
|
|
|
# vim: set et ts=2 sw=2 ai:
|