14 lines
356 B
Nix
14 lines
356 B
Nix
{ inputs, pkgs, tools, ... }:
|
|
|
|
let
|
|
importWebsites = expr: import expr {
|
|
tools = tools.nginx;
|
|
packages = inputs.self.packages.${pkgs.system};
|
|
};
|
|
|
|
websites = tools.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
|
|
|
|
extraWebsites = importWebsites ./extra-sites.nix;
|
|
in {
|
|
services.nginx.virtualHosts = websites // extraWebsites;
|
|
}
|