From 179de56afb3720a1e1f3075a4fdb6baf8eba1c5a Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Wed, 24 Nov 2021 22:17:07 +0100 Subject: [PATCH] fix the blueman-applet --- hardware/bluetooth.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/hardware/bluetooth.nix b/hardware/bluetooth.nix index 971b5d0..28b204a 100644 --- a/hardware/bluetooth.nix +++ b/hardware/bluetooth.nix @@ -21,16 +21,8 @@ }; systemd.user.services.blueman-applet = { - description = "Blueman Applet"; - after = [ "multi-user.target" ]; - wantedBy = [ "default.target" ]; - serviceConfig = { - Type = "simple"; - ExecStart = "${blueman}/bin/blueman-applet"; - ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; - KillMode = "process"; - Restart = "on-failure"; - }; + partOf = [ "graphical-session.target" ]; + wantedBy = [ "graphical-session.target" ]; }; }