From 7b317fbce38c86b6b8b48393eaf0ad2c7fb52fc6 Mon Sep 17 00:00:00 2001 From: Thary Date: Wed, 17 Sep 2025 17:22:10 +0300 Subject: [PATCH] fix --- module.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module.nix b/module.nix index cdd79e2..aef7f70 100644 --- a/module.nix +++ b/module.nix @@ -128,11 +128,9 @@ in rm -f /run/postfix/mastodon.cf || true mkdir /run/postfix/ || true # Create /run/postfix if it doesn't exist export hashedPassword=$(${lib.getExe pkgs.mkpasswd} -sm bcrypt "$password") - echo "${sp.domain} noreply.mastodon@${sp.domain}:$hashedPassword" > /run/postfix/mastodon.cf - ${pkgs.postfix}/bin/postmap /run/postfix/mastodon.cf - # echo "$hashedPassword" > /run/postfix/mastodon.cf - chmod 440 /run/postfix/mastodon.cf{,.db} - chown ${config.services.postfix.user}:${config.services.postfix.group} /run/postfix/mastodon.cf{,.db} + echo "$hashedPassword" > /run/postfix/mastodon.cf + chmod 440 /run/postfix/mastodon.cf + chown ${config.services.postfix.user}:${config.services.postfix.group} /run/postfix/mastodon.cf ''; }; };