From 9cb997e6627c8911e748f6e8eb284fa26910fb18 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 31 Jan 2025 19:19:53 +0100 Subject: [PATCH] programs/terminal/emulators: welcome back ghosttyd! --- modules/programs/terminal/emulators/ghostty.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/programs/terminal/emulators/ghostty.nix b/modules/programs/terminal/emulators/ghostty.nix index ef73bcd..2dc6530 100644 --- a/modules/programs/terminal/emulators/ghostty.nix +++ b/modules/programs/terminal/emulators/ghostty.nix @@ -96,5 +96,20 @@ in { ]; packages = [pkgs.ghostty]; }; + + systemd.user.services.ghosttyd = { + description = "ghosttyd™"; + partOf = ["graphical-session.target"]; + after = ["graphical-session.target"]; + wantedBy = ["graphical-session.target"]; + path = lib.mkForce []; + + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false --quit-after-last-window-closed=false"; + Slice = "background-graphical.slice"; + Restart = "on-failure"; + }; + }; }; }