From 535e4345f04bb79a7c30d57b678c984938e7851d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Wed, 24 Nov 2021 21:32:56 +0100 Subject: [PATCH] try to add a systemd service for blueman-applet --- hardware/blueooth.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hardware/blueooth.nix b/hardware/blueooth.nix index b674b64..971b5d0 100644 --- a/hardware/blueooth.nix +++ b/hardware/blueooth.nix @@ -19,5 +19,19 @@ extraModules = [ pkgs.pulseaudio-modules-bt ]; package = pkgs.pulseaudioFull; }; + + 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"; + }; + }; + }