akkoma: add more emojis

This commit is contained in:
emily 2024-11-19 21:37:58 +01:00
parent a03fc6bb9c
commit 84fa1945db
Signed by: emily
GPG key ID: F6F4C66207FCF995

View file

@ -22,33 +22,62 @@
}; };
in with pkgs; [ exiftool ffmpeg-headless imagemagick ]; in with pkgs; [ exiftool ffmpeg-headless imagemagick ];
extraStatic."emoji/blobs.gg" = pkgs.akkoma-emoji.blobs_gg; extraStatic = let
actualFetchzip =
{
url,
hash
}: pkgs.runCommandNoCC "${lib.last (lib.splitString "/" url)}" {
src = pkgs.fetchurl {
inherit url hash;
};
} ''
${lib.getExe pkgs.unzip} $src -d $out
'';
in {
"emoji/blobs.gg" = pkgs.akkoma-emoji.blobs_gg;
extraStatic."emoji/florp" = pkgs.runCommandNoCC "florp" { "emoji/custom" = pkgs.runCommandNoCC "florp" {
src = inputs.florp-branding.packages.${config.nixpkgs.hostPlatform.system}.favicon; src = inputs.florp-branding.packages.${config.nixpkgs.hostPlatform.system}.favicon;
} '' } ''
mkdir $out mkdir $out
cp $src $out/florp.png cp $src $out/florp.png
''; '';
extraStatic."static/styles.json" = pkgs.writeText "styles.json" (builtins.toJSON ( "emoji/neodog" = actualFetchzip {
url = "https://git.gay/moonrabbits/neodog/raw/commit/6f9eb283b6dcbe507fde1110abab267cb2d73b70/neodog.zip";
hash = "sha256-ISyzpRyjHf+4jKrOtHHqH0Qn7CQu5RQSLH/HL/YSdT4=";
};
"emoji/neocat" = actualFetchzip {
url = "https://volpeon.ink/emojis/neocat/neocat.zip";
hash = "sha256-DZDuk0Djlax504flNWdpqAw+ROLOOVGj0ZvJLyouo7A=";
};
"emoji/neofox" = actualFetchzip {
url = "https://volpeon.ink/emojis/neofox/neofox.zip";
hash = "sha256-rZUPA7ZvrO8q/lx8XK3IxJ1URLgq0PSh752eWzG+uos=";
};
"static/styles.json" = pkgs.writeText "styles.json" (builtins.toJSON (
builtins.fromJSON (builtins.readFile "${pkgs.akkoma-fe-domi}/static/styles.json") // { builtins.fromJSON (builtins.readFile "${pkgs.akkoma-fe-domi}/static/styles.json") // {
elly-mod = "/static/themes/elly-mod.json"; elly-mod = "/static/themes/elly-mod.json";
} }
)); ));
extraStatic."static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json); "static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json);
extraStatic."static/custom.css" = pkgs.writeText "custom.css" '' "static/custom.css" = pkgs.writeText "custom.css" ''
.tos-content img, .terms-of-service img { .tos-content img, .terms-of-service img {
max-width: 100%; max-width: 100%;
} }
''; '';
extraStatic."static/terms-of-service.html" = inputs.florp-about.packages.${pkgs.system}.default; "static/terms-of-service.html" = inputs.florp-about.packages.${pkgs.system}.default;
extraStatic."images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${pkgs.system}.wallpaper; "images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${pkgs.system}.wallpaper;
extraStatic."images/florp_banner.avif" = inputs.florp-branding.packages.${pkgs.system}.banner; "images/florp_banner.avif" = inputs.florp-branding.packages.${pkgs.system}.banner;
extraStatic."favicon.png" = inputs.florp-branding.packages.${pkgs.system}.favicon; "favicon.png" = inputs.florp-branding.packages.${pkgs.system}.favicon;
};
frontends = { frontends = {
primary = { primary = {
@ -118,6 +147,20 @@
]; ];
}; };
":emoji".groups = {
blobs = "/emoji/blobs.gg/*.png";
neodog = "/emoji/neodog/*.png";
neocat = [
"/emoji/neocat/*_256.png"
"/emoji/neodog/additional_neocat/*.png"
];
neofox = [
"/emoji/neofox/*_256.png"
"/emoji/neodog/additional_neofox/*.png"
];
custom = "/emoji/custom/*.png";
};
"Pleroma.Captcha".method = mkRaw "Pleroma.Captcha.Kocaptcha"; "Pleroma.Captcha".method = mkRaw "Pleroma.Captcha.Kocaptcha";
"Pleroma.Web.Endpoint".url.host = "florp.social"; "Pleroma.Web.Endpoint".url.host = "florp.social";