From 38bd660ddb731b5bf262c1aa41fa074bd29dcb7e Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 18 May 2026 16:53:12 +0100 Subject: [PATCH] macbook: add warmup services for Ghostty and Nemo Start Ghostty headless and pre-warm Nemo at login so both launch faster on the aging Haswell MacBook Air. Co-Authored-By: Claude Opus 4.6 --- hosts/FredOS-Macbook.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/hosts/FredOS-Macbook.nix b/hosts/FredOS-Macbook.nix index 391e24a..6f3fb68 100644 --- a/hosts/FredOS-Macbook.nix +++ b/hosts/FredOS-Macbook.nix @@ -60,6 +60,33 @@ 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 = "on-failure"; + }; + Install.WantedBy = [ "graphical-session.target" ]; + }; + + systemd.user.services.nemo-warmup = { + Unit = { + Description = "Pre-warm Nemo file manager libraries"; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + Service = { + Type = "oneshot"; + ExecStart = "${pkgs.nemo}/bin/nemo --quit"; + }; + Install.WantedBy = [ "graphical-session.target" ]; + }; + systemd.user.services.kbd-backlight-init = { Unit = { Description = "Set keyboard backlight to 10% on login";