kubernetes-deployments/nixng-configurations/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

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