Skip to content

Commit

Permalink
grub: use fc-match format option rather than grep (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
danth authored May 18, 2024
1 parent b5f4ca4 commit 4a4c82f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/grub/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ let
} ''
# Use fontconfig to select the correct .ttf or .otf file based on name
font=$(
${pkgs.fontconfig}/bin/fc-match -v "${font.name}" \
| grep "file:" | cut -d '"' -f 2
${lib.getExe' pkgs.fontconfig "fc-match"} \
${lib.escapeShellArg font.name} \
--format=%{file}
)
# Convert to .pf2
Expand Down

0 comments on commit 4a4c82f

Please sign in to comment.