1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 00:18:30 +02: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:
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" ];
};