ghostty: reload service on configuration change

This commit is contained in:
Robert Helgesson
2026-01-06 21:17:38 +01:00
committed by Austin Horstman
parent c068188a8e
commit 4fee4bd14b
2 changed files with 38 additions and 1 deletions

View File

@@ -231,6 +231,15 @@ in
xdg.configFile."systemd/user/app-com.mitchellh.ghostty.service.d/overrides.conf".text = ''
[Unit]
X-SwitchMethod=keep-old
X-Reload-Triggers=${
let
storePathOf = name: config.xdg.configFile.${name}.source;
in
toString (
lib.optionals (cfg.settings != { }) [ (storePathOf "ghostty/config") ]
++ lib.mapAttrsToList (name: _: storePathOf "ghostty/themes/${name}") cfg.themes
)
}
'';
dbus.packages = [ cfg.package ];