diff --git a/nixos/modules/config/fonts/fontdir.nix b/nixos/modules/config/fonts/fontdir.nix index c0ca9d1b537a3..ba4a32fd59195 100644 --- a/nixos/modules/config/fonts/fontdir.nix +++ b/nixos/modules/config/fonts/fontdir.nix @@ -8,7 +8,8 @@ let cfg = config.fonts.fontDir; - x11Fonts = pkgs.callPackage ( + needsNative = pkgs.stdenv.buildPlatform == pkgs.stdenv.hostPlatform; + x11Fonts = (if needsNative then pkgs else pkgs.pkgsBuildBuild).callPackage ( { runCommand, gzip,