From 3e6c35086c559927ac27f5be8eccaaca5a650d90 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 1 Dec 2022 22:16:19 +0100 Subject: [PATCH] mastodon: install chaos.social theme --- hosts/mastodon/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hosts/mastodon/default.nix b/hosts/mastodon/default.nix index 9d78768d..a394cafa 100644 --- a/hosts/mastodon/default.nix +++ b/hosts/mastodon/default.nix @@ -34,6 +34,22 @@ enable = true; localDomain = "c3d2.social"; + package = pkgs.mastodon.overrideAttrs (oa: { + # install chaos.social theme for eri + postPatch = + let + chaos_social_custom = pkgs.fetchzip { + url = "https://github.com/chaossocial/custom/archive/dadb72e258e56a4773d58d242d9fd1048d9560c7.zip"; + sha256 = "sha256-0yfor0cpPGUZbZHP7RXs5Ls6uNzcXi8Zb3AMaNqPz5s="; + }; + in '' + for F in {custom,custom_wide,mastodon-light}.scss ; do + cp ${chaos_social_custom}/themes/$F app/javascript/styles/ + done + echo "chaos-social-wide: styles/custom_wide.scss" >> config/themes.yml + ''; + }); + smtp = { host = "mail.c3d2.de"; port = 587;