about summary refs log tree commit diff
path: root/modules/services/invidious.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-02-04 21:58:16 +0900
committersefidel <contact@sefidel.net>2024-02-04 21:58:16 +0900
commit029aa80e04a09bb7ae487ad151ada3dba5d49678 (patch)
treecff807d074d31bb34cdc6a70e3e2e46f60493e73 /modules/services/invidious.nix
parent7c8f33849779e922cbb85bcae23fbb8f0bf777be (diff)
downloadnixrc-029aa80e04a09bb7ae487ad151ada3dba5d49678.tar.gz
nixrc-029aa80e04a09bb7ae487ad151ada3dba5d49678.zip
feat(modules/invidious): set sensible defaults
Diffstat (limited to 'modules/services/invidious.nix')
-rw-r--r--modules/services/invidious.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/services/invidious.nix b/modules/services/invidious.nix
index 17fec9f..cf9ba92 100644
--- a/modules/services/invidious.nix
+++ b/modules/services/invidious.nix
@@ -24,10 +24,26 @@ in
 
       hmacKeyFile = cfg.secrets.invidious-hmac-key;
 
+      database.createLocally = true;
+
       settings = {
         db.user = "indivious";
-        captions = [ "English" "Japanese" "Korean" ];
+        db.dbname = "indivious";
         check_tables = true;
+
+        external_port = 443;
+        https_only = true;
+
+        quality = "dash";
+        quality_dash = "best";
+
+        use_pubsub_feeds = true;
+
+        popular_enabled = false;
+        feed_menu = [ /* "Popular" */ "Trending" "Subscriptions" "Playlists" ];
+        default_home = "Trending";
+
+        captions = [ "English" "Japanese" "Korean" ];
       };
     };
   };