mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-12 09:19:01 +00:00
users/foodogsquared: configure Beets
This commit is contained in:
parent
98dacefb11
commit
a9744733af
@ -1,5 +1,62 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
musicDir = config.xdg.userDirs.music;
|
||||||
|
playlistsDir = "${musicDir}/playlists";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
# My music player setup, completely configured with Nix!
|
||||||
|
programs.beets = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
library = "${musicDir}/library.db";
|
||||||
|
plugins = [
|
||||||
|
"acousticbrainz"
|
||||||
|
"chroma"
|
||||||
|
"edit"
|
||||||
|
"export"
|
||||||
|
"fetchart"
|
||||||
|
"fromfilename"
|
||||||
|
"fuzzy"
|
||||||
|
"mbsync"
|
||||||
|
"playlist"
|
||||||
|
"scrub"
|
||||||
|
"smartplaylist"
|
||||||
|
];
|
||||||
|
ignore_hidden = true;
|
||||||
|
directory = musicDir;
|
||||||
|
ui.color = true;
|
||||||
|
|
||||||
|
import = {
|
||||||
|
move = true;
|
||||||
|
link = false;
|
||||||
|
resume = true;
|
||||||
|
incremental = true;
|
||||||
|
group_albums = true;
|
||||||
|
log = "beets.log";
|
||||||
|
};
|
||||||
|
|
||||||
|
match.ignore_video_tracks = true;
|
||||||
|
|
||||||
|
# Plugins configuration.
|
||||||
|
fuzzy.prefix = "-";
|
||||||
|
scrub.auto = true;
|
||||||
|
smartplaylist = {
|
||||||
|
relative_to = musicDir;
|
||||||
|
playlist_dir = playlistsDir;
|
||||||
|
playlists = [
|
||||||
|
{
|
||||||
|
name = "all.m3u8";
|
||||||
|
query = "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "released-in-$year.m3u8";
|
||||||
|
query = "year:2000..2023";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user