diff --git a/home.nix b/home.nix index 0df40d1..bc324aa 100644 --- a/home.nix +++ b/home.nix @@ -7,6 +7,8 @@ ] else [ ./modules/stylix.nix + ./modules/beets.nix + #./modules/firefox.nix ]); diff --git a/main.nix b/main.nix index d03f434..0ed3d00 100644 --- a/main.nix +++ b/main.nix @@ -33,7 +33,7 @@ ./modules/virtualisation.nix ./modules/mpd.nix ./modules/sshfs.nix - + #./modules/firefox.nix ]) ++ (if device == "laptop" then [ diff --git a/modules/beets.nix b/modules/beets.nix index 487d23b..7e61d4a 100644 --- a/modules/beets.nix +++ b/modules/beets.nix @@ -4,6 +4,8 @@ home = { packages = with pkgs; [ beets + ffmpeg + chromaprint ]; file.".config/beets/config.yaml".text = '' @@ -14,19 +16,24 @@ write: true copy: true - plugins: [convert fetchart embedart fromfilename chroma smartplaylist] + plugins: + - convert + - fetchart + - embedart + - fromfilename + - chroma + - smartplaylist paths: - default: $artist/$album/$track + default: $artist/$album/$track - $title convert: auto: true format: opus formats: - opus: - command: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest - extension: opus - dest: ~/Music + opus: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest + dest: /home/bug/Music + fetchart: auto: yes