diff --git a/modules/fedi/default.nix b/modules/fedi/default.nix index f0e3733..c48bac8 100644 --- a/modules/fedi/default.nix +++ b/modules/fedi/default.nix @@ -2,6 +2,7 @@ inherit (lib) mkIf; inherit (config) conf; inherit ((pkgs.formats.elixirConf { }).lib) mkMap; + neocat = (pkgs.callPackage ./neocat.nix { }); in mkIf conf.fedi.enable { services.akkoma = { enable = true; @@ -99,6 +100,9 @@ in mkIf conf.fedi.enable { }; }; }; + extraStatic = { + "emoji/neocat" = neocat; + }; nginx = { serverName = "fedi.twoneis.site"; useACMEHost = "twoneis.site"; diff --git a/modules/fedi/neocat.nix b/modules/fedi/neocat.nix new file mode 100644 index 0000000..5f42edd --- /dev/null +++ b/modules/fedi/neocat.nix @@ -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 + ''; +}