Files
My_NixOS_Config/home-manager/worklaptop/services.nix
T
2026-04-09 01:32:45 +01:00

34 lines
765 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
unstablePkgs,
...
}: {
services = {
pueue.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"];
};
};
}