custom playerctl service

This commit is contained in:
Zynh Ludwig 2024-07-16 03:28:53 -07:00
parent 63c2953b90
commit 6d9f543af8

View file

@ -17,7 +17,20 @@ in
};
config = lib.mkIf cfg.enable {
services.playerctld.enable = true;
systemd.user.services.playerctld = {
Unit = {
Description = "MPRIS media player daemon";
PartOf = [ "graphical-session.target" ];
};
Install.WantedBy = [ "graphical-session.target" ];
Service = {
ExecStart = "${pkgs.playerctl}/bin/playerctld";
Type = "dbus";
BusName = "org.mpris.MediaPlayer2.playerctld";
};
};
home.packages = with pkgs; [
playerctl