diff options
Diffstat (limited to 'modules/home.legacy/conf/beets/plugins/play')
-rw-r--r-- | modules/home.legacy/conf/beets/plugins/play/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/home.legacy/conf/beets/plugins/play/default.nix b/modules/home.legacy/conf/beets/plugins/play/default.nix new file mode 100644 index 00000000..f5bc3c9b --- /dev/null +++ b/modules/home.legacy/conf/beets/plugins/play/default.nix @@ -0,0 +1,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; + }; +} |