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 {
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.playerctld.enable = true;
|
||||||
systemd.user.services.playerctld = {
|
systemd.user.services.playerctld = {
|
||||||
Unit = {
|
Unit.PartOf = lib.mkForce [ "graphical-session.target" ];
|
||||||
Description = "MPRIS media player daemon";
|
Install.WantedBy = lib.mkForce [ "graphical-session.target" ];
|
||||||
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; [
|
home.packages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue