1
1
Files
deployed-nixos-server-and-apps/nixos-apps/ewanick.com.nix
Bill Ewanick ae7fee9e32
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
Gitea Actions Demo / build-site (push) Successful in 5s
WIP
2026-01-04 02:30:35 -05:00

36 lines
925 B
Nix

{pkgs, ...}: let
description = "A blog powered by Emanote running solely on Markdown files.";
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
HOST = "localhost";
PORT = 5567;
emanote-version = "1.4.0.0";
in {
services.caddy = {
enable = true;
virtualHosts = {
"ewanick.com" = {
serverAliases = ["www.ewanick.com"];
extraConfig = ''
reverse_proxy ${HOST}:${toString PORT}
'';
};
};
};
systemd.services = {
ewanick-site = {
enable = true;
description = "A blog powered by Emanote running solely on Markdown files.";
path = with pkgs; [nix git];
wantedBy = ["multi-user.target"];
script = ''
cd ${PROJECT_ROOT}
nix run github:srid/emanote/${emanote-version} \
-- run \
--port ${toString PORT} \
--host ${HOST}
'';
};
};
}