1
1
Files
deployed-nixos-server-and-apps/nixos-apps/ewanick.com.nix
Bill Ewanick 9b77159110
All checks were successful
Gitea Actions Demo / build-site (push) Successful in 4s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Run 'nix fmt' on whole repo
2026-01-03 20:47:42 -05:00

34 lines
772 B
Nix

{pkgs, ...}: let
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
PORT = "5567";
HOST = "localhost";
emanote-version = "1.2.0";
in {
services.caddy = {
enable = true;
virtualHosts = {
"ewanick.com" = {
serverAliases = ["www.ewanick.com"];
extraConfig = ''
reverse_proxy ${HOST}:${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}
'';
};
};
}