From 92e6da3645b09fd9ba22d91e9bee85d717dabc8b Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 14 Jul 2025 02:26:30 +0800 Subject: [PATCH] feat(homes): Move ghostty config to nixos and darwin modules --- nix/homes/rafiq/desktop/darwin.nix | 7 +++++++ nix/homes/rafiq/desktop/default.nix | 8 ++------ nix/homes/rafiq/desktop/nixos.nix | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 nix/homes/rafiq/desktop/darwin.nix diff --git a/nix/homes/rafiq/desktop/darwin.nix b/nix/homes/rafiq/desktop/darwin.nix new file mode 100644 index 0000000..ea20119 --- /dev/null +++ b/nix/homes/rafiq/desktop/darwin.nix @@ -0,0 +1,7 @@ +{ + flake.modules.darwin.graphical.homebrew = { + enable = true; + onActivation.cleanup = "uninstall"; + casks = [ "ghostty" ]; + }; +} diff --git a/nix/homes/rafiq/desktop/default.nix b/nix/homes/rafiq/desktop/default.nix index dda5cd8..d6e9c4c 100644 --- a/nix/homes/rafiq/desktop/default.nix +++ b/nix/homes/rafiq/desktop/default.nix @@ -57,16 +57,12 @@ vesktop.enable = true; thunderbird.enable = true; thunderbird.profiles.rafiq.isDefault = true; + # ghostty is broken on nix-darwin + ghostty.settings.confirm-close-surface = false; firefox = { enable = true; inherit profiles; }; - ghostty = { - enable = true; - settings = { - confirm-close-surface = false; - }; - }; }; }; } diff --git a/nix/homes/rafiq/desktop/nixos.nix b/nix/homes/rafiq/desktop/nixos.nix index dc9e77f..c40f260 100644 --- a/nix/homes/rafiq/desktop/nixos.nix +++ b/nix/homes/rafiq/desktop/nixos.nix @@ -144,6 +144,7 @@ in }; programs = { fuzzel.enable = true; + ghostty.enable = true; waybar = { enable = true; settings = [