summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/mastodon.nix
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2021-02-13 17:49:13 +0300
committerIzorkin <izorkin@elven.pw>2021-10-26 10:59:39 +0300
commit1d948428c893ded64e92502a394abc59be130a91 (patch)
treef5348de17612d90d72621762f27158a1a8da254c /nixos/modules/services/web-apps/mastodon.nix
parent23f71e9427c7cd2a6f87a167b4f6dc170b4431df (diff)
downloadnixpkgs-1d948428c893ded64e92502a394abc59be130a91.tar
nixpkgs-1d948428c893ded64e92502a394abc59be130a91.tar.gz
nixpkgs-1d948428c893ded64e92502a394abc59be130a91.tar.bz2
nixpkgs-1d948428c893ded64e92502a394abc59be130a91.tar.lz
nixpkgs-1d948428c893ded64e92502a394abc59be130a91.tar.xz
nixpkgs-1d948428c893ded64e92502a394abc59be130a91.tar.zst
nixpkgs-1d948428c893ded64e92502a394abc59be130a91.zip
nixos/mastodon: fix send e-mail notifications
Diffstat (limited to 'nixos/modules/services/web-apps/mastodon.nix')
-rw-r--r--nixos/modules/services/web-apps/mastodon.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix
index d3790d8b176..2458cb3b594 100644
--- a/nixos/modules/services/web-apps/mastodon.nix
+++ b/nixos/modules/services/web-apps/mastodon.nix
@@ -344,7 +344,7 @@ in {
         authenticate = lib.mkOption {
           description = "Authenticate with the SMTP server using username and password.";
           type = lib.types.bool;
-          default = true;
+          default = false;
         };
 
         host = lib.mkOption {
@@ -596,6 +596,7 @@ in {
 
     services.postfix = lib.mkIf (cfg.smtp.createLocally && cfg.smtp.host == "127.0.0.1") {
       enable = true;
+      hostname = lib.mkDefault "${cfg.localDomain}";
     };
     services.redis = lib.mkIf (cfg.redis.createLocally && cfg.redis.host == "127.0.0.1") {
       enable = true;