refactor(nix): share glyph decoding helper

This commit is contained in:
2026-10-11 20:16:43 -04:00
parent 5b644e1fd2
commit 8edf330a06
14 changed files with 57 additions and 37 deletions

View File

@@ -2,12 +2,16 @@
config,
lib,
pkgs,
util,
...
}:
let
cfg = config.modules.network.vpn-client; # NOLINT(let_order)
vpnIcon = builtins.fromJSON ''"\udb83\udc9d"'';
vpnIcon = util.glyph [
"db83"
"dc9d"
];
vpnStatus = pkgs.writeShellScript "waybar-vpn-status" ''
interface=${lib.escapeShellArg cfg.interface}