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 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-18 16:57:05 +01:00
parent 38bd660ddb
commit b32bb900c0

View file

@ -69,7 +69,8 @@
Service = { Service = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false"; ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false";
Restart = "on-failure"; Restart = "always";
RestartSec = 1;
}; };
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ "graphical-session.target" ];
}; };