kubernetes-deployments/nixng-configurations/default.nix

63 lines
1.5 KiB
Nix
Raw Normal View History

2024-12-19 19:34:55 +00:00
{
self,
flake-utils,
nixng,
2024-12-31 10:29:29 +00:00
nginx,
blog,
2024-12-19 19:34:55 +00:00
nixpkgs,
2024-12-19 20:32:21 +00:00
nixpkgs-jellyseerr,
2024-12-29 15:02:16 +00:00
nixpkgs-bazarr,
2024-12-31 12:00:22 +00:00
nixpkgs-radicale,
nixpkgs-master,
2024-12-19 19:34:55 +00:00
...
}:
flake-utils.lib.eachDefaultSystem (system: let
images = {
dnsmasq = ./dnsmasq.nix;
2024-12-19 20:07:30 +00:00
attic = ./attic.nix;
ntfy = ./ntfy.nix;
radicale = ./radicale.nix;
2024-12-19 20:32:21 +00:00
jellyseerr = ./jellyseerr.nix;
2024-12-21 12:57:19 +00:00
radarr = ./radarr.nix;
2024-12-23 14:54:56 +00:00
sonarr = ./sonarr.nix;
2024-12-23 16:42:04 +00:00
bazarr = ./bazarr.nix;
2024-12-23 17:58:03 +00:00
prowlarr = ./prowlarr.nix;
2024-12-31 10:29:29 +00:00
blog = ./blog.nix;
2024-12-19 19:34:55 +00:00
};
in {
nixngConfigurations = builtins.mapAttrs (name: configFile:
nixng.nglib.makeSystem {
inherit nixpkgs system;
name = "nixng-${name}";
2024-12-29 15:43:40 +00:00
config = import configFile;
2024-12-19 20:32:21 +00:00
specialArgs = {
2024-12-31 10:29:29 +00:00
inherit nginx blog;
2024-12-19 20:32:21 +00:00
inherit (self) globals;
};
2024-12-29 15:43:40 +00:00
extraModules = [
self.nixngModules.bazarr
self.nixngModules.radicale
self.nixngModules.jellyseerr
self.nixngModules.radarr
self.nixngModules.sonarr
self.nixngModules.prowlarr
2024-12-29 15:43:40 +00:00
{
nixpkgs.overlays = [
(final: _prev: {
# From master branch
prowlarr = nixpkgs-master.legacyPackages.${system}.prowlarr;
# From forks
2024-12-29 15:43:40 +00:00
bazarr = nixpkgs-bazarr.legacyPackages.${system}.bazarr;
jellyseerr = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr;
2024-12-31 12:00:22 +00:00
radicale = nixpkgs-radicale.legacyPackages.${system}.radicale;
2024-12-29 15:43:40 +00:00
})
];
}
];
2024-12-19 19:34:55 +00:00
})
images;
})