oizys/lib/extended.nix

12 lines
255 B
Nix
Raw Normal View History

2024-02-27 10:41:27 -06:00
final: prev: let
runes = import ../modules/runes;
in {
mkIfIn = name: list: prev.mkIf (builtins.elem name list);
mkRune = {
rune,
number ? "6",
runeKind ? "braille",
}:
"[1;3${number}m\n" + runes.${rune}.${runeKind} + "\n";
}