Skip to content

Commit

Permalink
ghostty: don't install package on darwin platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Jan 10, 2025
1 parent d4aebb9 commit 59a28f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/programs/ghostty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
options.programs.ghostty = {
enable = lib.mkEnableOption "Ghostty";

package = lib.mkPackageOption pkgs "ghostty" { };
package = lib.mkPackageOption pkgs "Ghostty" { default = [ "ghostty" ]; };

settings = lib.mkOption {
inherit (keyValue) type;
Expand Down Expand Up @@ -108,7 +108,9 @@ in {

config = lib.mkIf cfg.enable (lib.mkMerge [
{
home.packages = [ cfg.package ];
# TODO: Install on darwin after it is supported.
home.packages =
lib.optionals pkgs.stdenv.hostPlatform.isLinux [ cfg.package ];

programs.ghostty.settings = lib.mkIf cfg.clearDefaultKeybinds {
keybind = lib.mkBefore [ "clear" ];
Expand Down

0 comments on commit 59a28f9

Please sign in to comment.