custom playerctl service

sh-initrd-on-root
Zynh Ludwig 2024-07-16 03:28:53 -07:00
parent 63c2953b90
commit 6d9f543af8
1 changed files with 14 additions and 1 deletions

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