Updated ghostty config

This commit is contained in:
2026-02-25 11:25:01 +00:00
parent 705861861c
commit 11dbca9a25
2 changed files with 20 additions and 1 deletions

View File

@@ -17,7 +17,6 @@
enable = true;
enableNushellIntegration = true;
};
ghostty.systemd.enable = true;
waybar = {
enable = true;
systemd.enable = true;

View File

@@ -12,4 +12,24 @@
pueue.enable = true;
hyprpaper.enable = true;
};
# Custom version of ghostty service, to stop closing during update
systemd.user.services."app-com.mitchellh.ghostty" = {
Unit = {
Description = "Ghostty Terminal Emulator";
X-SwitchMethod = "keep-old";
After = ["graphical-session.target"];
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${lib.getExe config.programs.ghostty.package}";
Environment = "WAYLAND_DISPLAY=wayland-1";
Type = "notify";
ReloadSignal = "SIGUSR2";
KillMode = "mixed";
Restart = "on-failure";
};
Install = {
WantedBy = ["graphical-session.target"];
};
};
}