Skip to content

Commit

Permalink
grub: include font name as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
danth authored May 16, 2024
1 parent 68b5c2b commit f15ca7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/grub/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ let
pkgs.makeFontsConf { fontDirectories = [ font.package ]; };
} ''
# Use fontconfig to select the correct .ttf or .otf file based on name
font=$(${lib.getExe' pkgs.fontconfig "fc-match"} --format=%{file})
font=$(
${lib.getExe' pkgs.fontconfig "fc-match"}
${lib.escapeShellArg font.name}
--format=%{file}
)
# Convert to .pf2
${pkgs.grub2}/bin/grub-mkfont $font --output $out --size ${toString sizes.applications}
Expand Down

0 comments on commit f15ca7a

Please sign in to comment.