From 3c9d0ec88615d5a3ee6a643b2dc19761f2039c1a Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 11 Oct 2026 21:07:35 -0400 Subject: [PATCH] refactor(nix): share glyph decoding helper --- src/dotfiles/util.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dotfiles/util.nix b/src/dotfiles/util.nix index b461c7c..01c44ff 100644 --- a/src/dotfiles/util.nix +++ b/src/dotfiles/util.nix @@ -25,6 +25,14 @@ in removeNixSuffix = path: lib.removeSuffix ".nix" (builtins.baseNameOf path); + glyph = + code: + builtins.fromJSON ( + "\"" + + (if builtins.isList code then lib.concatMapStrings (part: "\\u${part}") code else "\\u${code}") + + "\"" + ); + registry.predicates.uniqueValue = uniqueValue; registry.predicates.uniquePerHost =