12 lines
258 B
Nix
12 lines
258 B
Nix
{ depot, ... }:
|
|
|
|
let
|
|
importWebsites = expr: import expr {
|
|
tools = depot.lib.nginx;
|
|
inherit (depot) packages;
|
|
};
|
|
|
|
websites = depot.lib.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
|
|
in {
|
|
services.nginx.virtualHosts = websites;
|
|
}
|