9 cfg = config.services.playerctld;
12 options.services.playerctld = {
13 enable = lib.mkEnableOption "the playerctld daemon";
15 package = lib.mkPackageOption pkgs "playerctl" { };
18 config = lib.mkIf cfg.enable {
19 environment.systemPackages = [ cfg.package ];
20 systemd.user.services.playerctld = {
21 description = "Playerctld daemon to track media player activity";
22 wantedBy = [ "default.target" ];
26 ExecStart = "${cfg.package}/bin/playerctld";
31 meta.maintainers = with lib.maintainers; [ aacebedo ];