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

12 lines
297 B
Nix
Raw Normal View History

2021-10-16 21:00:53 +03:00
{ config, lib, tools, ... }:
2022-05-21 14:56:56 +03:00
let
importWebsites = expr: import expr { tools = tools.nginx; };
websites = tools.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
extraWebsites = importWebsites ./extra-sites.nix;
in {
services.nginx.virtualHosts = websites // extraWebsites;
2021-10-16 21:00:53 +03:00
}