add ghostty service

This commit is contained in:
lucy 2026-10-14 14:57:49 +02:00
commit e6761cbae5
3 changed files with 18 additions and 3 deletions

View file

@ -1,13 +1,28 @@
{ pkgs, ... }: {
{ pkgs, config, lib, inputs, ... }: {
users.users.lucy.maid = {
gsettings.settings = {
org.gnome.desktop.interface = {
color-scheme = "prefer-dark";
color-scheme = "prefer-dark";
gtk-theme = "adw-gtk3";
cursor-theme = "macOS";
icon-theme = "Papirus";
cursor-size = 24;
};
};
systemd.services.ghostty = {
description = "Ghostty";
after = [
"graphical-session.target"
"dbus.socket"
];
requires = [ "dbus.socket" ];
wantedBy = [ config.maid.systemdGraphicalTarget ];
serviceConfig = {
Type = "notify-reload"; # reload waits for ghostty to sd_notify READY=1
ReloadSignal = "SIGUSR2"; # ghostty's config-reload signal (default is SIGHUP)
BusName = "com.mitchellh.ghostty";
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
};
};
};
}