fix
This commit is contained in:
16
module.nix
16
module.nix
@@ -45,7 +45,7 @@ in
|
|||||||
(lib.mkOption {
|
(lib.mkOption {
|
||||||
default = "mastodon";
|
default = "mastodon";
|
||||||
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
type = lib.types.strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||||
description = "Subdomain";
|
description = "Subdomain (changing subdomain after setting up will cause breakage of the server!)";
|
||||||
})
|
})
|
||||||
// {
|
// {
|
||||||
meta = {
|
meta = {
|
||||||
@@ -75,13 +75,14 @@ in
|
|||||||
|
|
||||||
smtp = {
|
smtp = {
|
||||||
createLocally = false;
|
createLocally = false;
|
||||||
# user = "noreply.mastodon@${sp.domain}";
|
# fromAddress = "noreply.mastodon@${sp.domain}";
|
||||||
fromAddress = "noreply.mastodon@${sp.domain}";
|
# user = "noreply.mastodon";
|
||||||
user = "noreply.mastodon";
|
|
||||||
|
fromAddress = "mastodon@${sp.domain}";
|
||||||
|
user = "mastodon";
|
||||||
|
|
||||||
host = "hollowness.top";
|
host = "hollowness.top";
|
||||||
# host = "127.0.0.1";
|
|
||||||
port = 465;
|
port = 465;
|
||||||
# port = 22;
|
|
||||||
passwordFile = "/run/keys/mastodon/email_password";
|
passwordFile = "/run/keys/mastodon/email_password";
|
||||||
authenticate = true;
|
authenticate = true;
|
||||||
};
|
};
|
||||||
@@ -100,7 +101,8 @@ in
|
|||||||
# smtp_sasl_password_maps = "texthash:/run/postfix/mastodon.cf";
|
# smtp_sasl_password_maps = "texthash:/run/postfix/mastodon.cf";
|
||||||
# virtual_mailbox_maps = [ "hash:/run/postfix/mastodon.cf" ];
|
# virtual_mailbox_maps = [ "hash:/run/postfix/mastodon.cf" ];
|
||||||
# };
|
# };
|
||||||
mailserver.loginAccounts."noreply.mastodon@${sp.domain}" = {
|
# mailserver.loginAccounts."noreply.mastodon@${sp.domain}" = {
|
||||||
|
mailserver.loginAccounts."mastodon@${sp.domain}" = {
|
||||||
hashedPasswordFile = "/run/postfix/mastodon.cf";
|
hashedPasswordFile = "/run/postfix/mastodon.cf";
|
||||||
sendOnly = true;
|
sendOnly = true;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user