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-29 15:02:16 +00:00
|
|
|
nixpkgs-bazarr,
|
2024-12-31 12:00:22 +00:00
|
|
|
nixpkgs-radicale,
|
2025-01-03 20:35:28 +00:00
|
|
|
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 = [
|
2025-01-04 23:17:35 +00:00
|
|
|
self.nixngModules.ids
|
2025-01-04 10:22:05 +00:00
|
|
|
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: {
|
2025-01-03 20:35:28 +00:00
|
|
|
# From master branch
|
|
|
|
prowlarr = nixpkgs-master.legacyPackages.${system}.prowlarr;
|
2025-01-04 10:54:21 +00:00
|
|
|
jellyseerr = nixpkgs-master.legacyPackages.${system}.jellyseerr;
|
2025-01-03 20:35:28 +00:00
|
|
|
|
|
|
|
# From forks
|
2024-12-29 15:43:40 +00:00
|
|
|
bazarr = nixpkgs-bazarr.legacyPackages.${system}.bazarr;
|
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;
|
|
|
|
})
|