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

15 lines
356 B
Nix
Raw Normal View History

2022-10-17 15:54:48 +03:00
{ inputs, pkgs, tools, ... }:
2021-10-16 21:00:53 +03:00
2022-05-21 14:56:56 +03:00
let
importWebsites = expr: import expr {
tools = tools.nginx;
packages = inputs.self.packages.${pkgs.system};
};
2022-05-21 14:56:56 +03:00
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
}