fix
This commit is contained in:
14
module.nix
14
module.nix
@@ -91,7 +91,7 @@ in
|
||||
enableUnixSocket = false;
|
||||
configureNginx = true;
|
||||
database.createLocally = true;
|
||||
streamingProcesses = 3;
|
||||
streamingProcesses = 2;
|
||||
|
||||
smtp = {
|
||||
createLocally = false;
|
||||
@@ -105,8 +105,7 @@ in
|
||||
port = 465;
|
||||
};
|
||||
extraConfig = {
|
||||
# "SMTP_ENABLE_STARTTLS" = "never";
|
||||
"SMTP_ENABLE_STARTTLS_AUTO" = "true";
|
||||
"SMTP_ENABLE_STARTTLS_AUTO" = "true"; # Simple NixOS MailServer doesn't allow connections without SSL
|
||||
"SMTP_ENABLE_STARTTLS" = "always";
|
||||
"SMTP_TLS" = "true";
|
||||
"SMTP_SSL" = "true";
|
||||
@@ -114,14 +113,7 @@ in
|
||||
"DISALLOW_UNAUTHENTICATED_API_ACCESS" = lib.boolToString cfg.dissallowUnauthenticatedAPI;
|
||||
};
|
||||
};
|
||||
users.users.mastodon.isSystemUser = lib.mkForce false;
|
||||
users.users.mastodon.isNormalUser = lib.mkForce true;
|
||||
|
||||
users.groups."email-users" = {};
|
||||
users.users."noreply.mastodon" = {
|
||||
isSystemUser = true;
|
||||
group = "email-users";
|
||||
};
|
||||
selfprivacy.emails."noreply.mastodon" = {
|
||||
hashedPasswordFile = secrets.hashedPasswordFile;
|
||||
systemdTargets = [ "mastodon-email-password-setup.service" ];
|
||||
@@ -155,7 +147,6 @@ in
|
||||
|
||||
services.mastodon-kanidm-sync = {
|
||||
after = [
|
||||
# "mastodon.service" # TODO: ??
|
||||
"postgresql.service"
|
||||
"kanidm.service"
|
||||
];
|
||||
@@ -173,6 +164,7 @@ in
|
||||
POSTGRES_HOST = db.host;
|
||||
USERDATA_FILE_PATH = "/var/lib/mastodon/.userdata.json";
|
||||
OWNER_USERNAME = sp.username;
|
||||
SLEEP_TIME = "30";
|
||||
};
|
||||
serviceConfig = {
|
||||
Slice = "mastodon.slice";
|
||||
|
Reference in New Issue
Block a user