From a283ab23de77aa760d13b670171b27cb6244d5fd Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 7 Jul 2026 14:01:12 +0100 Subject: [PATCH] ghostty: share warm-instance daemon across desktops Co-Authored-By: Claude Fable 5 --- home-manager/fred.nix | 15 +++++++++++++++ hosts/FredOS-Macbook.nix | 14 -------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/home-manager/fred.nix b/home-manager/fred.nix index ecb745b..87a9364 100644 --- a/home-manager/fred.nix +++ b/home-manager/fred.nix @@ -48,4 +48,19 @@ in }; }; + # Warm Ghostty instance — new windows attach via gtk-single-instance. + systemd.user.services.ghostty-daemon = lib.mkIf isDesktop { + Unit = { + Description = "Ghostty warm instance (no window)"; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + Service = { + Type = "simple"; + ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false"; + Restart = "always"; + }; + Install.WantedBy = [ "graphical-session.target" ]; + }; + } diff --git a/hosts/FredOS-Macbook.nix b/hosts/FredOS-Macbook.nix index d2895d8..847f220 100644 --- a/hosts/FredOS-Macbook.nix +++ b/hosts/FredOS-Macbook.nix @@ -136,20 +136,6 @@ main() Install.WantedBy = [ "graphical-session.target" ]; }; - systemd.user.services.ghostty-daemon = { - Unit = { - Description = "Ghostty warm instance (no window)"; - After = [ "graphical-session.target" ]; - PartOf = [ "graphical-session.target" ]; - }; - Service = { - Type = "simple"; - ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false"; - Restart = "always"; - }; - Install.WantedBy = [ "graphical-session.target" ]; - }; - systemd.user.services.nemo-warmup = { Unit = { Description = "Pre-warm Nemo file manager libraries";