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

35 lines
860 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
];
script = ''
cd ${PROJECT_ROOT}
nix run github:srid/emanote/${emanote-version} -- run --port ${PORT} --host ${HOST}
'';
};
};
}