custom playerctl service
parent
63c2953b90
commit
6d9f543af8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue