diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-11 02:35:00 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-11 13:22:15 +0200 |
commit | 0e2903de327253221864d959d658abd70ab8cd4e (patch) | |
tree | f57081161dc07d3f87757ce44d10f4cb29a82c37 /modules | |
parent | fix(home/beets): Specify replacement schema (diff) | |
download | nixos-config-0e2903de327253221864d959d658abd70ab8cd4e.tar.gz nixos-config-0e2903de327253221864d959d658abd70ab8cd4e.zip |
feat(home/beets): Init 'play' plugin
Diffstat (limited to 'modules')
-rw-r--r-- | modules/home/conf/beets/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/home/conf/beets/default.nix b/modules/home/conf/beets/default.nix index 9b88db88..145ae337 100644 --- a/modules/home/conf/beets/default.nix +++ b/modules/home/conf/beets/default.nix @@ -89,6 +89,13 @@ "title:commentary" ]; }; + 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; + }; smartplaylist = { relative_to = config.services.mpd.musicDirectory; playlist_dir = config.services.mpd.playlistDirectory; @@ -174,6 +181,9 @@ # Alows to use inline python for parsing tags "inline" + # Support player integration + "play" + # Show tags on files/queries "info" |