udiskie: make dependency on tray.target conditional

Specifically, it is unnecessary to have the dependency when the
udiskie tray applet is disabled.
This commit is contained in:
Lily Foster 2022-08-22 10:40:03 -04:00 committed by Robert Helgesson
parent 0160a0cef0
commit ee8e99add5
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -109,8 +109,9 @@ in {
systemd.user.services.udiskie = {
Unit = {
Description = "udiskie mount daemon";
Requires = [ "tray.target" ];
After = [ "graphical-session-pre.target" "tray.target" ];
Requires = lib.optional (cfg.tray != "never") "tray.target";
After = [ "graphical-session-pre.target" ]
++ lib.optional (cfg.tray != "never") "tray.target";
PartOf = [ "graphical-session.target" ];
};