summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/mastodon.nix
diff options
context:
space:
mode:
authorKerstin Humm <kerstin@erictapen.name>2022-03-26 17:35:32 +0100
committerKerstin <kerstin@erictapen.name>2022-03-31 13:17:11 +0200
commit23a1971a4ecda43c9a16ddf798ecc957fc9bfc38 (patch)
treeffc8feb8c2176c34f9b7c8cb8832560ee22ae6b6 /nixos/modules/services/web-apps/mastodon.nix
parent513f7beb553142dfdf96df3e3f3fa8bcc163af36 (diff)
downloadnixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar
nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.gz
nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.bz2
nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.lz
nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.xz
nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.tar.zst
nixpkgs-23a1971a4ecda43c9a16ddf798ecc957fc9bfc38.zip
nixos/mastodon: preload libjemalloc.so
Co-authored-by: Izorkin <izorkin@elven.pw>
Diffstat (limited to 'nixos/modules/services/web-apps/mastodon.nix')
-rw-r--r--nixos/modules/services/web-apps/mastodon.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix
index 8208c85bfd7..fa5497d6606 100644
--- a/nixos/modules/services/web-apps/mastodon.nix
+++ b/nixos/modules/services/web-apps/mastodon.nix
@@ -9,6 +9,8 @@ let
     RAILS_ENV = "production";
     NODE_ENV = "production";
 
+    LD_PRELOAD = "${pkgs.jemalloc}/lib/libjemalloc.so";
+
     # mastodon-web concurrency.
     WEB_CONCURRENCY = toString cfg.webProcesses;
     MAX_THREADS = toString cfg.webThreads;