phantom: install invidious

This commit is contained in:
Leonardo Eugênio 2024-07-15 01:45:32 -03:00
parent ea235409b8
commit da1634aa29
2 changed files with 21 additions and 0 deletions

View file

@ -19,6 +19,7 @@
./email.nix ./email.nix
./forgejo.nix ./forgejo.nix
./warthunder-leak-counter.nix ./warthunder-leak-counter.nix
./invidious.nix
]; ];
networking.hostName = "phantom"; networking.hostName = "phantom";

View file

@ -0,0 +1,20 @@
{ config, ... }:
{
services.invidious = {
enable = true;
domain = "invidious.lelgenio.com";
nginx.enable = true;
settings.db = {
user = "invidious";
dbname = "invidious";
};
};
services.nginx = {
clientMaxBodySize = "100m";
virtualHosts.${config.services.invidious.domain} = {
enableACME = true;
forceSSL = true;
};
};
}