1
Fork 0

Set up invidious

This commit is contained in:
prescientmoon 2024-03-11 15:46:27 +01:00
parent e30d42e8f2
commit d7db3abaae
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
6 changed files with 48 additions and 0 deletions

BIN
common/icons/invidious.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -17,3 +17,4 @@ The idea is to always use consecutive ports, but never go back and try to recycl
| 8411 | [prometheus node exporter](../hosts/nixos/lapetus/services/prometheus.nix) |
| 8412 | [prometheus nginx exporter](../hosts/nixos/lapetus/services/prometheus.nix) |
| 8413 | [commafeed](../hosts/nixos/lapetus/services/commafeed.nix) |
| 8414 | [invidious](../hosts/nixos/lapetus/services/invidious.nix) |

View file

@ -0,0 +1,3 @@
{
environment.persistence."/persist/state".directories = [ "/var/lib/postgres" ];
}

View file

@ -16,6 +16,7 @@
./services/prometheus.nix
./services/grafana.nix
./services/commafeed.nix
./services/invidious.nix
./filesystems
./hardware
];

View file

@ -118,6 +118,20 @@ in
];
}
# }}}
# {{{ Entertainment
{
name = "Entertainment";
icon = fa "gamepad";
items = [
{
name = "Invidious";
subtitle = "Youtube client";
logo = icon "invidious.png";
url = "https://yt.moonythm.dev";
}
];
}
# }}}
];
};
};

View file

@ -0,0 +1,29 @@
{ config, ... }: {
imports = [
../../common/optional/services/nginx.nix
../../common/optional/services/postgres.nix
];
services.invidious = {
enable = true;
domain = "yt.moonythm.dev";
port = 8414;
nginx.enable = true;
settings = {
captcha_enabled = false;
admins = [ "prescientmoon" ];
default_user_preferences = {
default_home = "Subscriptions";
max_results = 40;
comments = [ "youtube" "reddit" ];
save_player_pos = true;
automatic_instance_redirect = true;
};
};
};
services.nginx.virtualHosts.${config.services.invidious.domain} =
config.satellite.proxy config.services.invidious.port { };
}