override instead of define
This commit is contained in:
parent
6e10cdfed4
commit
a3128c56ce
1 changed files with 3 additions and 12 deletions
|
@ -17,19 +17,10 @@ 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";
|
||||
};
|
||||
Unit.PartOf = lib.mkForce [ "graphical-session.target" ];
|
||||
Install.WantedBy = lib.mkForce [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
Loading…
Reference in a new issue