From 6af026c2bc70a8841ccb9429de8dd6ce1507b421 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 21 May 2026 07:29:41 +0200 Subject: [PATCH] nixos/mastodon: fix tootctl runtime path --- nixos/modules/services/web-apps/mastodon.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix index 8021abb42ede..88a3ff0faf6b 100644 --- a/nixos/modules/services/web-apps/mastodon.nix +++ b/nixos/modules/services/web-apps/mastodon.nix @@ -145,9 +145,11 @@ let pkgs.writeShellScriptBin "mastodon-tootctl" '' set -a export RAILS_ROOT="${cfg.package}" + export HOME="/var/lib/mastodon" source "${envFile}" source /var/lib/mastodon/.secrets_env ${sourceExtraEnv} + cd /var/lib/mastodon sudo=exec if [[ "$USER" != ${cfg.user} ]]; then