This commit is contained in:
twoneis 2025-02-24 19:45:01 +01:00
parent 94f5d87fd9
commit 66c98fe365
2 changed files with 31 additions and 0 deletions

View file

@ -2,6 +2,7 @@
inherit (lib) mkIf; inherit (lib) mkIf;
inherit (config) conf; inherit (config) conf;
inherit ((pkgs.formats.elixirConf { }).lib) mkMap; inherit ((pkgs.formats.elixirConf { }).lib) mkMap;
neocat = (pkgs.callPackage ./neocat.nix { });
in mkIf conf.fedi.enable { in mkIf conf.fedi.enable {
services.akkoma = { services.akkoma = {
enable = true; enable = true;
@ -99,6 +100,9 @@ in mkIf conf.fedi.enable {
}; };
}; };
}; };
extraStatic = {
"emoji/neocat" = neocat;
};
nginx = { nginx = {
serverName = "fedi.twoneis.site"; serverName = "fedi.twoneis.site";
useACMEHost = "twoneis.site"; useACMEHost = "twoneis.site";

27
modules/fedi/neocat.nix Normal file
View file

@ -0,0 +1,27 @@
{
stdenvNoCC,
fetchurl,
unzip,
}:
stdenvNoCC.mkDerivation {
pname = "blobs.gg";
version = "unstable-2019-07-24";
src = fetchurl {
url = "https://volpeon.ink/emojis/neocat/neocat.zip";
hash = "";
};
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
mkdir -p $out
cp *.png $out
runHook postInstall
'';
}