From b32bb900c0c3ee7fe741bdf7b64cddce45ac1c14 Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 18 May 2026 16:57:05 +0100 Subject: [PATCH] macbook: always restart ghostty daemon after window close Ghostty exits cleanly when the last window closes, so on-failure never triggers a restart. Switch to Restart=always with a 1s delay so the headless instance respawns and stays warm. Co-Authored-By: Claude Opus 4.6 --- hosts/FredOS-Macbook.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/FredOS-Macbook.nix b/hosts/FredOS-Macbook.nix index 6f3fb68..32bfd09 100644 --- a/hosts/FredOS-Macbook.nix +++ b/hosts/FredOS-Macbook.nix @@ -69,7 +69,8 @@ Service = { Type = "simple"; ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false"; - Restart = "on-failure"; + Restart = "always"; + RestartSec = 1; }; Install.WantedBy = [ "graphical-session.target" ]; };