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:
parent
0160a0cef0
commit
ee8e99add5
|
@ -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" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue