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:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user