mirror of
https://github.com/nix-community/home-manager
synced 2024-11-20 10:09:45 +01:00
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
1 changed files with 3 additions and 2 deletions
|
@ -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