From cfec34b2926907397c9bfad49ba102c87b42003d Mon Sep 17 00:00:00 2001 From: fi Date: Sat, 14 Dec 2024 22:34:28 +0100 Subject: [PATCH] Add mastodon-modern theme --- config/hosts/mastodon/mastodon.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/hosts/mastodon/mastodon.nix b/config/hosts/mastodon/mastodon.nix index 43bca3e..18c25e0 100644 --- a/config/hosts/mastodon/mastodon.nix +++ b/config/hosts/mastodon/mastodon.nix @@ -5,6 +5,11 @@ let rev = "v2.2"; hash = "sha256-KyXDnpZh1DrY59jvdU42UicgBVvEGtvAGeU1mNxJauQ="; }; + mastodonModern = pkgs.fetchgit { + url = "https://git.gay/freeplay/Mastodon-Modern.git"; + rev = "e9e53496789234d5782b5b3d97ed66a130b1678a"; + hash = "sha256-lUq57Gbr1UCMVGoO4xTT3wYPNwohdepxSPCX+WP6AS8="; + }; mastodonNekoversePatches = pkgs.fetchgit { url = "https://github.com/yuri-qq/nekoverse-mastodon-patches.git"; hash = "sha256-3jWbKll5RGB1vfEmONVivzGYcoONEkBEHh/rOt9LXlU="; @@ -23,10 +28,14 @@ let installPhase = '' cp -r ./ $out/ cp -r ${tangerineUI}/mastodon/app/javascript/styles/* $out/app/javascript/styles/ + echo "@import 'mastodon/variables'; + @import 'application';" >> $out/app/javascript/styles/modern-dark.scss + cat ${mastodonModern}/modern.css >> $out/app/javascript/styles/modern-dark.scss echo "tangerineui: styles/tangerineui.scss tangerineui-purple: styles/tangerineui-purple.scss tangerineui-cherry: styles/tangerineui-cherry.scss - tangerineui-lagoon: styles/tangerineui-lagoon.scss" >> $out/config/themes.yml + tangerineui-lagoon: styles/tangerineui-lagoon.scss + modern-dark: styles/modern-dark.scss" >> $out/config/themes.yml ''; }; patches = [