akkoma: add more emojis
This commit is contained in:
parent
a03fc6bb9c
commit
8910001198
1 changed files with 74 additions and 22 deletions
|
@ -22,33 +22,70 @@
|
||||||
};
|
};
|
||||||
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
|
||||||
|
for f in $out/*_256.png; do
|
||||||
|
mv -- "$f" "''${f/_256}"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
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 {
|
||||||
builtins.fromJSON (builtins.readFile "${pkgs.akkoma-fe-domi}/static/styles.json") // {
|
url = "https://git.gay/moonrabbits/neodog/raw/commit/6f9eb283b6dcbe507fde1110abab267cb2d73b70/neodog.zip";
|
||||||
elly-mod = "/static/themes/elly-mod.json";
|
hash = "sha256-ISyzpRyjHf+4jKrOtHHqH0Qn7CQu5RQSLH/HL/YSdT4=";
|
||||||
}
|
};
|
||||||
));
|
|
||||||
|
|
||||||
extraStatic."static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json);
|
"emoji/neocat" = actualFetchzip {
|
||||||
|
url = "https://volpeon.ink/emojis/neocat/neocat.zip";
|
||||||
|
hash = "sha256-DZDuk0Djlax504flNWdpqAw+ROLOOVGj0ZvJLyouo7A=";
|
||||||
|
};
|
||||||
|
|
||||||
extraStatic."static/custom.css" = pkgs.writeText "custom.css" ''
|
"emoji/neofox" = actualFetchzip {
|
||||||
.tos-content img, .terms-of-service img {
|
url = "https://volpeon.ink/emojis/neofox/neofox.zip";
|
||||||
max-width: 100%;
|
hash = "sha256-rZUPA7ZvrO8q/lx8XK3IxJ1URLgq0PSh752eWzG+uos=";
|
||||||
}
|
};
|
||||||
'';
|
|
||||||
|
|
||||||
extraStatic."static/terms-of-service.html" = inputs.florp-about.packages.${pkgs.system}.default;
|
"emoji/blobhaj" = actualFetchzip {
|
||||||
extraStatic."images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${pkgs.system}.wallpaper;
|
url = "https://web.archive.org/web/20240829143703/https://heatherhorns.com/wp-content/uploads/2022/12/Blobhaj-12-13-2022.zip";
|
||||||
extraStatic."images/florp_banner.avif" = inputs.florp-branding.packages.${pkgs.system}.banner;
|
hash = "sha256-5l8ozTivCSOomPq+zDD4FWhK5mA/H2qkGs8beuDnp9s=";
|
||||||
extraStatic."favicon.png" = inputs.florp-branding.packages.${pkgs.system}.favicon;
|
};
|
||||||
|
|
||||||
|
"static/styles.json" = pkgs.writeText "styles.json" (builtins.toJSON (
|
||||||
|
builtins.fromJSON (builtins.readFile "${pkgs.akkoma-fe-domi}/static/styles.json") // {
|
||||||
|
elly-mod = "/static/themes/elly-mod.json";
|
||||||
|
}
|
||||||
|
));
|
||||||
|
|
||||||
|
"static/themes/elly-mod.json" = pkgs.writeText "elly-mod.json" (builtins.readFile ./elly-mod.json);
|
||||||
|
|
||||||
|
"static/custom.css" = pkgs.writeText "custom.css" ''
|
||||||
|
.tos-content img, .terms-of-service img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
"static/terms-of-service.html" = inputs.florp-about.packages.${pkgs.system}.default;
|
||||||
|
"images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${pkgs.system}.wallpaper;
|
||||||
|
"images/florp_banner.avif" = inputs.florp-branding.packages.${pkgs.system}.banner;
|
||||||
|
"favicon.png" = inputs.florp-branding.packages.${pkgs.system}.favicon;
|
||||||
|
};
|
||||||
|
|
||||||
frontends = {
|
frontends = {
|
||||||
primary = {
|
primary = {
|
||||||
|
@ -118,6 +155,21 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
":emoji".groups = {
|
||||||
|
blobs = "/emoji/blobs.gg/*.png";
|
||||||
|
blobhaj = "/emoji/blobhaj/512w/*.png";
|
||||||
|
neodog = "/emoji/neodog/*.png";
|
||||||
|
neocat = [
|
||||||
|
"/emoji/neocat/*.png"
|
||||||
|
"/emoji/neodog/additional_neocat/*.png"
|
||||||
|
];
|
||||||
|
neofox = [
|
||||||
|
"/emoji/neofox/*.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";
|
||||||
|
|
Loading…
Reference in a new issue