infrastructure/machines/web01/static/default.nix

14 lines
240 B
Nix
Raw Normal View History

_:
let
websites = import ./npins;
mkVhost = name:
{ outPath, ... }: {
2024-01-06 10:28:02 +01:00
enableACME = true;
forceSSL = true;
root = "${outPath}/www";
};
in { services.nginx.virtualHosts = builtins.mapAttrs mkVhost websites; }