Use overlays for shiny packages

This commit is contained in:
Pim Kunis 2024-12-29 16:43:40 +01:00
parent c0435e5ef5
commit bbb149def3
3 changed files with 15 additions and 14 deletions

View file

@ -1,14 +1,9 @@
{ {...}: {
system,
nixpkgs-bazarr,
...
}: {
dinit.enable = true; dinit.enable = true;
init.services.bazarr.shutdownOnExit = true; init.services.bazarr.shutdownOnExit = true;
services.bazarr = { services.bazarr = {
enable = true; enable = true;
package = nixpkgs-bazarr.legacyPackages.${system}.bazarr;
configDir = "/config"; configDir = "/config";
}; };
} }

View file

@ -24,11 +24,22 @@ in {
nixng.nglib.makeSystem { nixng.nglib.makeSystem {
inherit nixpkgs system; inherit nixpkgs system;
name = "nixng-${name}"; name = "nixng-${name}";
config = import configFile;
specialArgs = { specialArgs = {
inherit nixpkgs-jellyseerr nixpkgs-bazarr;
inherit (self) globals; inherit (self) globals;
}; };
config = import configFile;
extraModules = [
{
nixpkgs.overlays = [
(final: _prev: {
bazarr = nixpkgs-bazarr.legacyPackages.${system}.bazarr;
jellyseerr = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr;
})
];
}
];
}) })
images; images;
}) })

View file

@ -1,14 +1,9 @@
{ {...}: {
system,
nixpkgs-jellyseerr,
...
}: {
dinit.enable = true; dinit.enable = true;
init.services.jellyseerr.shutdownOnExit = true; init.services.jellyseerr.shutdownOnExit = true;
services.jellyseerr = { services.jellyseerr = {
enable = true; enable = true;
package = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr;
configDir = "/app/config"; configDir = "/app/config";
}; };
} }