try to add a systemd service for blueman-applet

This commit is contained in:
Andreas Zweili 2021-11-24 21:32:56 +01:00
parent 5233fb11f7
commit 535e4345f0
1 changed files with 14 additions and 0 deletions

View File

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