diff --git a/nixng-configurations/bazarr.nix b/nixng-configurations/bazarr.nix index 72b2334..03d7b6a 100644 --- a/nixng-configurations/bazarr.nix +++ b/nixng-configurations/bazarr.nix @@ -1,14 +1,9 @@ -{ - system, - nixpkgs-bazarr, - ... -}: { +{...}: { dinit.enable = true; init.services.bazarr.shutdownOnExit = true; services.bazarr = { enable = true; - package = nixpkgs-bazarr.legacyPackages.${system}.bazarr; configDir = "/config"; }; } diff --git a/nixng-configurations/default.nix b/nixng-configurations/default.nix index 5343855..cb1e3c5 100644 --- a/nixng-configurations/default.nix +++ b/nixng-configurations/default.nix @@ -24,11 +24,22 @@ in { nixng.nglib.makeSystem { inherit nixpkgs system; name = "nixng-${name}"; + config = import configFile; + specialArgs = { - inherit nixpkgs-jellyseerr nixpkgs-bazarr; inherit (self) globals; }; - config = import configFile; + + extraModules = [ + { + nixpkgs.overlays = [ + (final: _prev: { + bazarr = nixpkgs-bazarr.legacyPackages.${system}.bazarr; + jellyseerr = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr; + }) + ]; + } + ]; }) images; }) diff --git a/nixng-configurations/jellyseerr.nix b/nixng-configurations/jellyseerr.nix index 4639caa..b86802e 100644 --- a/nixng-configurations/jellyseerr.nix +++ b/nixng-configurations/jellyseerr.nix @@ -1,14 +1,9 @@ -{ - system, - nixpkgs-jellyseerr, - ... -}: { +{...}: { dinit.enable = true; init.services.jellyseerr.shutdownOnExit = true; services.jellyseerr = { enable = true; - package = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr; configDir = "/app/config"; }; }