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"; + }; + }; + }