From c099b1bfc38b9daea8eee69e71d1bcfdc6ade739 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 26 Mar 2025 14:14:50 -0500 Subject: [PATCH 1/4] feat: mastodon multi-user mode --- modules/nixos/services/mastodon/default.nix | 26 ++++++++++----------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/modules/nixos/services/mastodon/default.nix b/modules/nixos/services/mastodon/default.nix index 62da572..a52d03d 100755 --- a/modules/nixos/services/mastodon/default.nix +++ b/modules/nixos/services/mastodon/default.nix @@ -25,19 +25,17 @@ in # If you really fuck up and name yourself wrong, use this shit # sudo mastodon-tootctl accounts modify username --remove-role - # nixpkgs.overlays = [ - # ( - # final: prev: { - # mastodon = prev.mastodon.overrideAttrs (oldAttrs: { - # postPatch = - # (oldAttrs.postPatch or "") - # + '' - # patch -p1 < ${./chars.patch} - # ''; - # }); - # } - # ) - # ]; + nixpkgs.overlays = [ + (final: prev: { + mastodon = prev.mastodon.overrideAttrs (oldAttrs: { + postPatch = + (oldAttrs.postPatch or "") + + '' + patch -p1 < ${./config/chars.patch} + ''; + }); + }) + ]; services = { mastodon = { @@ -55,7 +53,7 @@ in passwordFile = config.sops.secrets.mastodon-database.path; }; extraConfig = { - SINGLE_USER_MODE = "true"; + SINGLE_USER_MODE = "false"; SMTP_AUTH_METHOD = "plain"; SMTP_DELIVERY_METHOD = "smtp"; SMTP_ENABLE_STARTTLS_AUTO = "true"; From 6deba0820be0a7f8685a393902c6087d9f6d6eaa Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 26 Mar 2025 14:16:57 -0500 Subject: [PATCH 2/4] feat: mastodon multi-user mode --- modules/nixos/services/mastodon/default.nix | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/nixos/services/mastodon/default.nix b/modules/nixos/services/mastodon/default.nix index a52d03d..655a6f6 100755 --- a/modules/nixos/services/mastodon/default.nix +++ b/modules/nixos/services/mastodon/default.nix @@ -25,17 +25,17 @@ in # If you really fuck up and name yourself wrong, use this shit # sudo mastodon-tootctl accounts modify username --remove-role - nixpkgs.overlays = [ - (final: prev: { - mastodon = prev.mastodon.overrideAttrs (oldAttrs: { - postPatch = - (oldAttrs.postPatch or "") - + '' - patch -p1 < ${./config/chars.patch} - ''; - }); - }) - ]; + # nixpkgs.overlays = [ + # (final: prev: { + # mastodon = prev.mastodon.overrideAttrs (oldAttrs: { + # postPatch = + # (oldAttrs.postPatch or "") + # + '' + # patch -p1 < ${./config/chars.patch} + # ''; + # }); + # }) + # ]; services = { mastodon = { From d24606a288a8aed0eb7cdfd94940e1fdc3fa872c Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 26 Mar 2025 14:40:53 -0500 Subject: [PATCH 3/4] feat: mastodon single-user mode --- modules/nixos/services/mastodon/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos/services/mastodon/default.nix b/modules/nixos/services/mastodon/default.nix index 655a6f6..53378af 100755 --- a/modules/nixos/services/mastodon/default.nix +++ b/modules/nixos/services/mastodon/default.nix @@ -53,7 +53,7 @@ in passwordFile = config.sops.secrets.mastodon-database.path; }; extraConfig = { - SINGLE_USER_MODE = "false"; + SINGLE_USER_MODE = "true"; SMTP_AUTH_METHOD = "plain"; SMTP_DELIVERY_METHOD = "smtp"; SMTP_ENABLE_STARTTLS_AUTO = "true"; From 024e647f83af8d2eaac95f634415e2b2a5d3bab1 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 26 Mar 2025 14:42:21 -0500 Subject: [PATCH 4/4] feat: mastodon multi-user mode --- modules/nixos/services/mastodon/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos/services/mastodon/default.nix b/modules/nixos/services/mastodon/default.nix index 53378af..655a6f6 100755 --- a/modules/nixos/services/mastodon/default.nix +++ b/modules/nixos/services/mastodon/default.nix @@ -53,7 +53,7 @@ in passwordFile = config.sops.secrets.mastodon-database.path; }; extraConfig = { - SINGLE_USER_MODE = "true"; + SINGLE_USER_MODE = "false"; SMTP_AUTH_METHOD = "plain"; SMTP_DELIVERY_METHOD = "smtp"; SMTP_ENABLE_STARTTLS_AUTO = "true";