diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-21 20:29:58 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-21 20:29:58 +0100 |
commit | f0122c251abeb2fd5579e0e19c4b20721a35b4f4 (patch) | |
tree | 03c430b19f4ea37cf2f02e37d1ccbe395809eb94 /system/services/mastodon/default.nix | |
parent | fix(modules/redlib): Change subdomain to `redlib` (diff) | |
download | nixos-server-f0122c251abeb2fd5579e0e19c4b20721a35b4f4.tar.gz nixos-server-f0122c251abeb2fd5579e0e19c4b20721a35b4f4.zip |
fix(system/services/mastodon): Update char patch to v4.3
Diffstat (limited to 'system/services/mastodon/default.nix')
-rw-r--r-- | system/services/mastodon/default.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/system/services/mastodon/default.nix b/system/services/mastodon/default.nix index 8e2c174..f613bf3 100644 --- a/system/services/mastodon/default.nix +++ b/system/services/mastodon/default.nix @@ -4,17 +4,19 @@ ... }: let emailAddress = "mastodon@vhack.eu"; + applyPatches = pkg: + pkg.overrideAttrs (attrs: { + patches = (attrs.patches or []) ++ [./patches/0001-feat-treewide-Increase-character-limit-to-5000-in-me.patch]; + }); in { services.mastodon = { enable = true; - package = pkgs.mastodon.overrideAttrs (attrs: { - patches = (attrs.patches or []) ++ [./patches/mastodon_v4.2.1-maxchar-5000.patch]; - }); + package = applyPatches pkgs.mastodon; # Unstable Mastodon package, used if - #security updates aren't backported. - #package = pkgs-unstable.mastodon; + # security updates aren't backported. + #package = applyPatches pkgs-unstable.mastodon; localDomain = "vhack.eu"; smtp = { |