override instead of define

This commit is contained in:
Zynh Ludwig 2024-07-16 03:32:01 -07:00
parent 6e10cdfed4
commit a3128c56ce

View file

@ -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; [