diff --git a/modules/grub/nixos.nix b/modules/grub/nixos.nix index 7b985be50..878242b6f 100644 --- a/modules/grub/nixos.nix +++ b/modules/grub/nixos.nix @@ -13,10 +13,7 @@ let pkgs.makeFontsConf { fontDirectories = [ font.package ]; }; } '' # 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 - ) + font=$(${lib.getExe' pkgs.fontconfig "fc-match"} --format=%{file}) # Convert to .pf2 ${pkgs.grub2}/bin/grub-mkfont $font --output $out --size ${toString sizes.applications}