about summary refs log tree commit diff stats
path: root/modules/home/conf/beets/plugins/play/default.nix
blob: f5bc3c9b7380ed456526946a95fa4271e430ec2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  lib,
  pkgs,
  config,
  ...
}: {
  programs.beets.settings.play = {
    command = "${lib.getExe pkgs.mpc-cli} $args add";
    relative_to = config.services.mpd.musicDirectory;

    # Run the command with the returned paths as arguments
    raw = true;
  };
}