nixos-config/hosts/phantom/invidious.nix

41 lines
931 B
Nix
Raw Normal View History

2024-07-15 01:45:32 -03:00
{
2024-09-25 22:08:10 -03:00
inputs,
pkgs,
config,
...
}:
{
# Replace with unstable, since 24.05 does not have sig-helper
disabledModules = [ "services/web-apps/invidious.nix" ];
imports = [ (inputs.nixpkgs-unstable + "/nixos/modules/services/web-apps/invidious.nix") ];
2024-07-15 01:45:32 -03:00
services.invidious = {
enable = true;
domain = "invidious.lelgenio.com";
nginx.enable = true;
port = 10601;
2024-09-25 22:08:10 -03:00
http3-ytproxy.enable = true;
sig-helper = {
enable = true;
package = pkgs.unstable.inv-sig-helper;
};
# {
# "visitor_data": "...",
# "po_token": "..."
# }
extraSettingsFile = config.age.secrets.phantom-invidious-settings.path;
settings = {
force_resolve = "ipv6";
db = {
user = "invidious";
dbname = "invidious";
};
2024-07-15 01:45:32 -03:00
};
};
2024-09-25 22:08:10 -03:00
age.secrets.phantom-invidious-settings = {
file = ../../secrets/phantom-invidious-settings.age;
mode = "666";
};
2024-07-15 01:45:32 -03:00
}