From 3c0030b80b0d940de86aa885ade3c08e5239ac39 Mon Sep 17 00:00:00 2001 From: Thary Date: Sat, 13 Sep 2025 12:32:13 +0300 Subject: [PATCH] fix --- module.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module.nix b/module.nix index 44910ec..b5b5801 100644 --- a/module.nix +++ b/module.nix @@ -125,10 +125,11 @@ 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 "noreply.mastodon@${sp.domain}:$hashedPassword" > /run/postfix/mastodon.cf + 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 - chown ${config.services.postfix.user}:${config.services.postfix.group} /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} ''; }; };