Skip to content

Commit

Permalink
ghostty: validate configuration on change
Browse files Browse the repository at this point in the history
Runs `ghostty +validate-config` when the configuration file changes.

Co-authored-by: Heitor Augusto <[email protected]>
(cherry picked from commit 11ab085)
  • Loading branch information
sestrella authored and getchoo committed Jan 8, 2025
1 parent d6bcbea commit a2f4e15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/programs/ghostty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
}

Expand Down

0 comments on commit a2f4e15

Please sign in to comment.