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;
init.services.bazarr.shutdownOnExit = true;
services.bazarr = {
enable = true;
package = nixpkgs-bazarr.legacyPackages.${system}.bazarr;
configDir = "/config";
};
}

View file

@ -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;
})

View file

@ -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";
};
}