feat(luna): add blog

TODO: Use the blog as a flake input to auto update it with the new
articles
This commit is contained in:
Price Hiller 2023-10-30 08:50:46 -05:00
parent 261d239597
commit 6bd8593220
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -1,4 +1,7 @@
{ config, ... }:
{ config, specialArgs, ... }:
let
blog-host = "blog.orion-technologies.io";
in
{
services.nginx = {
enable = true;
@ -11,4 +14,17 @@
acceptTerms = true;
defaults.email = "price@orion-technologies.io";
};
environment.persistence."${specialArgs.persist-dir}" = {
directories = [
"/var/www/${blog-host}"
];
};
services.nginx.virtualHosts."${blog-host}" = {
addSSL = true;
enableACME = true;
root = "/var/www/${blog-host}";
locations."/".index = "home.html";
};
}