From 19e16150084be3334731952dd578531e6b30f7ac Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Thu, 9 Jan 2025 22:37:21 -0300 Subject: [PATCH] ghostty: make package nullable on darwin platform --- modules/programs/ghostty.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/programs/ghostty.nix b/modules/programs/ghostty.nix index 9ebaa7b30c0e..afa359ac70c2 100644 --- a/modules/programs/ghostty.nix +++ b/modules/programs/ghostty.nix @@ -13,7 +13,11 @@ in { options.programs.ghostty = { enable = lib.mkEnableOption "Ghostty"; - package = lib.mkPackageOption pkgs "ghostty" { }; + package = lib.mkPackageOption pkgs "Ghostty" { + default = [ "ghostty" ]; + # TODO: Remove this after darwin is supported in ghostty package + nullable = pkgs.stdenv.hostPlatform.isDarwin; + }; settings = lib.mkOption { inherit (keyValue) type; @@ -108,7 +112,7 @@ in { config = lib.mkIf cfg.enable (lib.mkMerge [ { - home.packages = [ cfg.package ]; + home.packages = lib.optionals (cfg.package != null) [ cfg.package ]; programs.ghostty.settings = lib.mkIf cfg.clearDefaultKeybinds { keybind = lib.mkBefore [ "clear" ];