nix flake for loads of emotes
Find a file
2024-04-24 22:54:07 -04:00
.gitignore lfs remove 2 2024-04-21 13:59:59 -04:00
akkoma.nix fix naming 2024-04-24 22:54:07 -04:00
flake.lock init 2024-04-20 16:48:53 -04:00
flake.nix minimalize 2024-04-24 22:50:18 -04:00
README.md minimalize 2024-04-24 22:50:18 -04:00

NixOS Fedi Emotes

Ever wanted to describe your emotes declaratively? ya us too.

Extremely WIP, but likely to stay stable with care.

Modules

Akkoma

We have a module to automatically import and configure derivations as Akkoma emoji... Assuming you're already importing this as a flake named fedi-emotes...

{ inputs, pkgs, ... }: {
  imports = [
    inputs.fedi-emotes.nixosModules.akkoma
  ];

  services.akkoma = {
    # ...
    emoji = {
      enable = true; # Enable the emoji tool
      emojiPackages = with inputs.fedi-emotes.packages.${pkgs.system}; [
        # Any packages are OK here, Akkoma expects .png/.gif.
        pkgs.akkoma-emoji.blobs_gg
        lightrunner-custom.hearts
        lightrunner-custom.anime
      ];
    };
    # ...
  };
}

This module will place these packages/derivations in services.akkoma.extraStatic."emoji/${package.name}", and map these prefixes to picker tabs via services.akkoma.config.":pleroma".":emoji".groups.