Switch from elm site to emanote
This commit is contained in:
parent
9224fd0c94
commit
6a5514c2ee
5 changed files with 25 additions and 113 deletions
|
|
@ -1,5 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
PROJECT_ROOT = builtins.toString ./.;
|
||||
PROJECT_ROOT = /workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com;
|
||||
PORT = "5567";
|
||||
HOST = "localhost";
|
||||
in
|
||||
{
|
||||
services.caddy = {
|
||||
|
|
@ -8,10 +12,24 @@ in
|
|||
"ewanick.com" = {
|
||||
serverAliases = [ "www.ewanick.com" ];
|
||||
extraConfig = ''
|
||||
root * ${PROJECT_ROOT}/ewanick.com/
|
||||
file_server
|
||||
reverse_proxy ${HOST}:${PORT}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
ewanick-site = {
|
||||
enable = true;
|
||||
description = "The hakyll executable that rebuilds the site when a new blog post is created.";
|
||||
path = with pkgs; [
|
||||
nix
|
||||
git
|
||||
];
|
||||
script = ''
|
||||
cd ${PROJECT_ROOT}
|
||||
nix run github:srid/emanote -- run --port ${PORT} --host ${HOST}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue