nix icon indicating copy to clipboard operation
nix copied to clipboard

Add support for Anki

Open 42willow opened this issue 4 months ago • 1 comments

  • https://github.com/catppuccin/anki
  • https://github.com/ankitects/anki
  • https://mynixos.com/search?q=home-manager%20anki

42willow avatar Aug 24 '25 22:08 42willow

This is what I do:

{
  config,
  pkgs,
  lib,
  ...
}:
{
  programs.anki = {
    enable = true;
    style = "native";
    addons = with pkgs.ankiAddons; [
      (recolor.withConfig {
        config =
          let
            polarity = if config.catppuccin.flavor == "latte" then "light" else "dark";
            flavor = lib.toSentenceCase config.catppuccin.flavor;
          in
          lib.importJSON "${recolor}/share/anki/addons/recolor/themes/(${polarity}) Catppuccin ${flavor}.json";
      })
    ];
  };
}

This requires IFD, but this can be fixed upstream by making withConfig accept a JSON file directly.

musjj avatar Sep 29 '25 13:09 musjj