summary refs log tree commit diff stats
path: root/system/services/invidious/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-08-07 12:40:14 +0200
committerSoispha <soispha@vhack.eu>2023-08-11 01:11:25 +0200
commit317575461a640ddc601751741bc6da92a3edb867 (patch)
tree419c78bb7638cfd696a8945e9ddfc4571e29be81 /system/services/invidious/default.nix
parentRefactor(system/secrets/secrets.nix): Remove redundant secretlist (diff)
downloadnixos-server-317575461a640ddc601751741bc6da92a3edb867.tar.gz
nixos-server-317575461a640ddc601751741bc6da92a3edb867.zip
Feat(system): Add invidious
Diffstat (limited to '')
-rw-r--r--system/services/invidious/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/services/invidious/default.nix b/system/services/invidious/default.nix
new file mode 100644
index 0000000..50a32e8
--- /dev/null
+++ b/system/services/invidious/default.nix
@@ -0,0 +1,12 @@
+{config, ...}: {
+  services.invidious = {
+    enable = true;
+    database = {
+      createLocally = true;
+      passwordFile = "${config.age.secrets.invidious.path}";
+    };
+    domain = "invidious.vhack.eu";
+    nginx.enable = true;
+    extraSettingsFile = "${config.age.secrets.invidiousSettings.path}";
+  };
+}