From a2c15fa83f310348ecc991df936462ae113db7e6 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Fri, 30 Oct 2026 13:38:27 -0500 Subject: add music collection software --- archetypes/collections/music.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 archetypes/collections/music.nix (limited to 'archetypes/collections') diff --git a/archetypes/collections/music.nix b/archetypes/collections/music.nix new file mode 100644 index 0000000..6302d68 --- /dev/null +++ b/archetypes/collections/music.nix @@ -0,0 +1,30 @@ +{ pkgs, lib, config, ... }: let + cfg = config._archetypes.collections.music; + beetsWithPlugins = pkgs.python3Packages.beets.override { + pluginOverrides = { + alternatives = { + enable = true; + propagatedBuildInputs = [ pkgs.python3Packages.beets-alternatives ]; + }; + }; + }; +in { + options._archetypes.collections.music = { + beets.enable = lib.mkEnableOption "enables beets"; + cd-tools.enable = lib.mkEnableOption "enables tools for burning, ripping, and converting cds"; + }; + + config = { + environment.systemPackages = with pkgs; lib.optionals cfg.beets.enable [ + beetsWithPlugins + ] ++ lib.optionals cfg.cd-tools.enable [ + abcde + cdparanoia + cdrdao + cuetools + flac + shntool + whipper + ]; + }; +} -- cgit v1.3.1