nix/modules/services/invidious/default.nix
2024-11-08 18:23:40 +01:00

20 lines
354 B
Nix

{
domain,
mail,
...
}: {
services.invidious = {
enable = true;
settings = {
db = {
user = "invidious";
dbname = "invidious";
};
};
};
services.invidious.domain = "yt.${domain}";
services.invidious.nginx.enable = true;
security.acme.defaults.email = "${mail}";
security.acme.acceptTerms = true;
}