summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-27 21:31:27 +0200
committerSilas Schöffel <sils@sils.li>2024-06-28 20:53:04 +0200
commit0fbb1f387e2437388f70e454190dbdb10cdd8318 (patch)
treee40e0f0b04b594c67dd16e59c22d822367e60434 /modules
parentdocs(password): Add documentation on the creation of new service passwords (diff)
downloadnixos-server-0fbb1f387e2437388f70e454190dbdb10cdd8318.tar.gz
nixos-server-0fbb1f387e2437388f70e454190dbdb10cdd8318.zip
fix(peertube): Activate smtp support
Diffstat (limited to 'modules')
-rw-r--r--modules/nixos/vhack/peertube/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/nixos/vhack/peertube/default.nix b/modules/nixos/vhack/peertube/default.nix
index df54336..aaf3cd1 100644
--- a/modules/nixos/vhack/peertube/default.nix
+++ b/modules/nixos/vhack/peertube/default.nix
@@ -1,6 +1,7 @@
 {
   config,
   lib,
+  pkgs,
   ...
 }: let
   cfg = config.vhack.peertube;
@@ -31,6 +32,22 @@ in {
       };
 
       secrets.secretsFile = "${config.age.secrets.peertubeGeneral.path}";
+
+      settings = {
+        smtp = let
+          emailAddress = "peertube@vhack.eu";
+        in {
+          sendmail = "${pkgs.postfix}/bin/sendmail";
+
+          transport = "sendmail";
+          hostname = "server1.vhack.eu";
+          port = 587;
+          username = emailAddress;
+          tls = true;
+          disable_starttls = true;
+          from_address = emailAddress;
+        };
+      };
     };
 
     # The `configureNginx` option does not do this for some reason