mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
ghostty: reload service on configuration change
This commit is contained in:
committed by
Austin Horstman
parent
c068188a8e
commit
4fee4bd14b
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user