depot/hosts/VEGAS/services/websites/default.nix

15 lines
327 B
Nix
Raw Normal View History

2023-02-24 15:16:15 +01:00
{ depot, tools, ... }:
2021-10-16 20:00:53 +02:00
2022-05-21 13:56:56 +02:00
let
importWebsites = expr: import expr {
tools = tools.nginx;
2023-02-24 15:16:15 +01:00
inherit (depot) packages;
};
2022-05-21 13:56:56 +02:00
websites = tools.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
extraWebsites = importWebsites ./extra-sites.nix;
in {
services.nginx.virtualHosts = websites // extraWebsites;
2021-10-16 20:00:53 +02:00
}