aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-30 16:51:37 -0700
committerFranck Cuny <franck@fcuny.net>2022-03-30 16:51:37 -0700
commit6f462c33064233f51c02c14118e0ca77cce14d37 (patch)
tree70b4810bfecbf6f340b11956652acba14f65314f
parentnas: backup navidrome data and add music subdomain (diff)
downloadinfra-6f462c33064233f51c02c14118e0ca77cce14d37.tar.gz
beets: tool to curate my music collection
-rw-r--r--users/fcuny/cli/beets.nix18
-rw-r--r--users/fcuny/cli/default.nix11
2 files changed, 27 insertions, 2 deletions
diff --git a/users/fcuny/cli/beets.nix b/users/fcuny/cli/beets.nix
new file mode 100644
index 0000000..6c3b53b
--- /dev/null
+++ b/users/fcuny/cli/beets.nix
@@ -0,0 +1,18 @@
+{ config, lib, pkgs, ... }:
+
+{
+ programs.beets = {
+ enable = true;
+ settings = {
+ directory = "/data/fast/music";
+ plugins = "fromfilename duplicates fetchart badfiles scrub";
+ paths = { default = "$albumartist/$album%aunique{}/$track $title"; };
+ import = { copy = true; };
+ va_name = "Various Artists";
+ fetchart = {
+ cautious = true;
+ sources = "filesystem coverart itunes amazon lastfm wikipedia";
+ };
+ };
+ };
+}
diff --git a/users/fcuny/cli/default.nix b/users/fcuny/cli/default.nix
index 0a35288..2478998 100644
--- a/users/fcuny/cli/default.nix
+++ b/users/fcuny/cli/default.nix
@@ -1,8 +1,15 @@
{ config, lib, pkgs, ... }:
{
- imports =
- [ ./backups.nix ./git.nix ./ssh.nix ./tmux.nix ./yt-dlp.nix ./shell.nix ];
+ imports = [
+ ./backups.nix
+ ./beets.nix
+ ./git.nix
+ ./shell.nix
+ ./ssh.nix
+ ./tmux.nix
+ ./yt-dlp.nix
+ ];
home.packages = [ pkgs.gcc pkgs.gnumake pkgs.jq pkgs.ripgrep ];
}