mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +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 = {
|
systemd.user.services.udiskie = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "udiskie mount daemon";
|
Description = "udiskie mount daemon";
|
||||||
Requires = [ "tray.target" ];
|
Requires = lib.optional (cfg.tray != "never") "tray.target";
|
||||||
After = [ "graphical-session-pre.target" "tray.target" ];
|
After = [ "graphical-session-pre.target" ]
|
||||||
|
++ lib.optional (cfg.tray != "never") "tray.target";
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue