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

13 lines
258 B
Nix
Raw Normal View History

2023-08-31 01:55:45 +03:00
{ depot, ... }:
2021-10-16 21:00:53 +03:00
2022-05-21 14:56:56 +03:00
let
importWebsites = expr: import expr {
2023-08-31 01:55:45 +03:00
tools = depot.lib.nginx;
2023-02-24 16:16:15 +02:00
inherit (depot) packages;
};
2022-05-21 14:56:56 +03:00
2023-08-31 01:55:45 +03:00
websites = depot.lib.nginx.mappers.mapSubdomains (importWebsites ./websites.nix);
2022-05-21 14:56:56 +03:00
in {
2023-08-31 01:55:45 +03:00
services.nginx.virtualHosts = websites;
2021-10-16 21:00:53 +03:00
}