From 11ab08541e61ac3bbf2ab27229f68622629401df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Estrella?= <2049686+sestrella@users.noreply.github.com> Date: Sat, 4 Jan 2025 03:24:51 -0500 Subject: [PATCH] ghostty: validate configuration on change Runs `ghostty +validate-config` when the configuration file changes. Co-authored-by: Heitor Augusto --- modules/programs/ghostty.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/programs/ghostty.nix b/modules/programs/ghostty.nix index b2c147cc..9ebaa7b3 100644 --- a/modules/programs/ghostty.nix +++ b/modules/programs/ghostty.nix @@ -120,6 +120,7 @@ in { { "ghostty/config" = lib.mkIf (cfg.settings != { }) { source = keyValue.generate "ghostty-config" cfg.settings; + onChange = "${lib.getExe cfg.package} +validate-config"; }; }