summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/vhack/peertube/default.nix17
-rw-r--r--system/services/mail/users.nix4
2 files changed, 21 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
diff --git a/system/services/mail/users.nix b/system/services/mail/users.nix
index eb9c714..0bae1a7 100644
--- a/system/services/mail/users.nix
+++ b/system/services/mail/users.nix
@@ -40,9 +40,13 @@
         "@sils.li"
       ];
     };
+
     # Mail-Account used by hosted software
     "mastodon@vhack.eu" = {
       hashedPassword = "$2b$05$pSby3x2p3cHg0FyAE8IiJ.nYUqtAIR10JA8HNpHwMAiLXqc.ltSK.";
     };
+    "peertube@vhack.eu" = {
+      hashedPassword = "$y$j9T$hyWQ8Awd2Xrc6qsK.2hwE1$LxACfaeW.yHGbkQL95dWtID9.zXL/aMwT6lp.yU/0g0";
+    };
   };
 }