nix-dotfiles/hosts/tsuki/services/invidious.nix
h7x4 cf42debf37
tsuki/invidious: misc:
- bind to 127.0.0.1
- depend on postgresql systemd unit
2023-07-12 02:06:41 +02:00

31 lines
538 B
Nix

{ config, ... }:
{
sops.secrets."postgres/invidious" = {
restartUnits = [ "invidious.service" ];
};
services.invidious = {
enable = true;
domain = "yt.nani.wtf";
port = 19283;
database = {
createLocally = true;
passwordFile = config.sops.secrets."postgres/invidious".path;
};
settings = {
registration_enabled = false;
host_binding = "127.0.0.1";
# popular_enabled = false;
};
};
systemd.services.invidious = {
requires = [ "postgresql.service" ];
};
}