Refactor flake.nix and NixOS module for lidarr-mb-gap

- Updated `flake.nix` to simplify package and app definitions by using `inherit` for better readability.
- Removed the `EXAMPLE_CONFIG.nix` file to streamline the project structure, as it was no longer needed.
- Enhanced `nixos/lidarr-mb-gap.nix` to improve the import process for the source configuration, ensuring clarity and maintainability.
This commit is contained in:
Danilo Reyes
2025-11-11 16:14:29 -06:00
parent b67e154777
commit 0403647a1c
3 changed files with 3 additions and 148 deletions

View File

@@ -16,7 +16,7 @@ let
else if config.services.lidarr-mb-gap.src != null then
import ../nix/package.nix {
inherit pkgs;
src = config.services.lidarr-mb-gap.src;
inherit (config.services.lidarr-mb-gap) src;
}
else
throw "services.lidarr-mb-gap: Either 'package' or 'src' must be set.";