mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
ghostty: fix config syntax file location on darwin (#6970)
Home Manager creates broken link to the Ghostty config syntax highlighting definition file, because it has different location on Darwin. This commit updates path to the config for Darwin users. Fixes #6961
This commit is contained in:
@@ -185,7 +185,11 @@ in
|
||||
programs.bat = lib.mkIf (cfg.package != null) {
|
||||
syntaxes.ghostty = {
|
||||
src = cfg.package;
|
||||
file = "share/bat/syntaxes/ghostty.sublime-syntax";
|
||||
file =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
"Applications/Ghostty.app/Contents/Resources/bat/syntaxes/ghostty.sublime-syntax"
|
||||
else
|
||||
"share/bat/syntaxes/ghostty.sublime-syntax";
|
||||
};
|
||||
config.map-syntax = [ "${config.xdg.configHome}/ghostty/config:Ghostty Config" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user