diff --git a/modules/services/pulseeffects.nix b/modules/services/pulseeffects.nix index af6cebe1..445b1c0a 100644 --- a/modules/services/pulseeffects.nix +++ b/modules/services/pulseeffects.nix @@ -36,10 +36,13 @@ in { systemd.user.services.pulseeffects = { Unit = { Description = "Pulseeffects daemon"; - Requires = [ "pulseaudio.service" "dbus.service" ]; - After = [ "graphical-session.target" ]; + Requires = [ "dbus.service" ]; + After = [ "graphical-session-pre.target" ]; + PartOf = [ "graphical-session.target" "pulseaudio.service" ]; }; + Install = { WantedBy = [ "graphical-session.target" ]; }; + Service = { ExecStart = "${pkgs.pulseeffects}/bin/pulseeffects --gapplication-service ${presetOpts}";