kubernetes-deployments/nixng-configurations/default.nix

45 lines
982 B
Nix

{
self,
flake-utils,
nixng,
nixpkgs,
nixpkgs-jellyseerr,
nixpkgs-bazarr,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
images = {
dnsmasq = ./dnsmasq.nix;
attic = ./attic.nix;
ntfy = ./ntfy.nix;
radicale = ./radicale.nix;
jellyseerr = ./jellyseerr.nix;
radarr = ./radarr.nix;
sonarr = ./sonarr.nix;
bazarr = ./bazarr.nix;
prowlarr = ./prowlarr.nix;
};
in {
nixngConfigurations = builtins.mapAttrs (name: configFile:
nixng.nglib.makeSystem {
inherit nixpkgs system;
name = "nixng-${name}";
config = import configFile;
specialArgs = {
inherit (self) globals;
};
extraModules = [
{
nixpkgs.overlays = [
(final: _prev: {
bazarr = nixpkgs-bazarr.legacyPackages.${system}.bazarr;
jellyseerr = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr;
})
];
}
];
})
images;
})