summary refs log tree commit diff stats
path: root/system/services/invidious-router/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 12:16:14 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 12:16:14 +0200
commitde0f05755548b2bf6454a608a2d0dc9073fa4c80 (patch)
treed04d3237c4186b3e92ea8916912d754e45c524a7 /system/services/invidious-router/default.nix
parentbuild(flake): Update (diff)
downloadnixos-server-de0f05755548b2bf6454a608a2d0dc9073fa4c80.tar.gz
nixos-server-de0f05755548b2bf6454a608a2d0dc9073fa4c80.zip
fix(system/services/invidious-router): Use the unstable pkg update
This has been updated to provide a means to send the user to YouTube, if
no invidious instances are available.
Diffstat (limited to 'system/services/invidious-router/default.nix')
-rw-r--r--system/services/invidious-router/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/services/invidious-router/default.nix b/system/services/invidious-router/default.nix
index c4d855c..a53cf29 100644
--- a/system/services/invidious-router/default.nix
+++ b/system/services/invidious-router/default.nix
@@ -1,11 +1,18 @@
-{...}: {
+{pkgsUnstable, ...}: {
   services.invidious-router = {
     enable = true;
+    package = pkgsUnstable.invidious-router;
     settings = {
       app = {
         listen = "127.0.0.1:8050";
         enable_youtube_fallback = false;
         reload_instance_list_interval = "60s";
+        not_available_message = ''
+          No available invidious instance found!
+          [link]View this video on YouTube[/link], a proprietary
+          platform that collects and uses your data without respecting
+          your privacy.
+        '';
       };
       api = {
         enabled = true;