Add lidarr-cleanup-singles package and integration

- Introduced a new package `lidarr-cleanup-singles` to identify and manage duplicate single tracks in Lidarr.
- Updated `flake.nix` to include the new package in outputs and modified app definitions to support it.
- Created a new script in `src-cleanup` for the main functionality, including audio fingerprint verification.
- Added necessary dependencies and configuration in `pyproject.toml` for the new package.
- Removed unused `flake-utils` and `systems` entries from `flake.lock` to streamline the configuration.
This commit is contained in:
Danilo Reyes
2025-11-13 21:46:03 -06:00
parent 0b86143646
commit 026c7fe0d8
6 changed files with 559 additions and 35 deletions

View File

@@ -13,13 +13,17 @@
inherit pkgs;
src = lib.cleanSource ./src;
};
lidarr-cleanup-singles = import ./nix/package-cleanup.nix {
inherit pkgs;
src = lib.cleanSource ./src-cleanup;
};
in
{
nixosModules.lidarr-mb-gap = import ./nixos/lidarr-mb-gap.nix;
packages.${system} = {
default = lidarr-mb-gap;
inherit lidarr-mb-gap;
inherit lidarr-mb-gap lidarr-cleanup-singles;
};
apps.${system} = {
@@ -31,6 +35,10 @@
type = "app";
program = "${lidarr-mb-gap}/bin/lidarr-mb-gap";
};
lidarr-cleanup-singles = {
type = "app";
program = "${lidarr-cleanup-singles}/bin/lidarr-cleanup-singles";
};
};
devShells.${system} = {
@@ -43,6 +51,7 @@
]
))
pkgs.black
pkgs.chromaprint
];
shellHook = ''
echo "Python environment ready!"