Remove module in favor of letting system configure nginx

This commit is contained in:
2023-04-11 02:53:15 +00:00
parent d44e5fc12f
commit 211237d9be
4 changed files with 31 additions and 77 deletions

14
lib.nix
View File

@@ -1,4 +1,4 @@
{ blog-source, pkgs, katex-html, resume }:
{ pkgs, blog-source, katex-html, resume }:
with pkgs;
with lib;
@@ -29,4 +29,16 @@ in
src = blog-source;
path = ".";
};
virtualHostFor = package:
{
"${package.host}" = mkMerge [
{
root = package;
}
(mkIf (package.ssl) {
forceSSL = true;
enableACME = true;
})
];
};
}