Remove module in favor of letting system configure nginx
This commit is contained in:
14
lib.nix
14
lib.nix
@@ -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;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user