WIP
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
|
||||
HOST = "localhost";
|
||||
PORT = 5567;
|
||||
emanote-version = "1.4.0";
|
||||
emanote-version = "1.4.0.0";
|
||||
in {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
@@ -17,17 +17,18 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
systemd.user.services = {
|
||||
ewanick-site = {
|
||||
enable = true;
|
||||
description = "A blog powered by Emanote running solely on Markdown files.";
|
||||
path = with pkgs; [
|
||||
nix
|
||||
git
|
||||
];
|
||||
path = with pkgs; [nix git];
|
||||
wantedBy = ["multi-user.target"];
|
||||
script = ''
|
||||
cd ${PROJECT_ROOT}
|
||||
nix run github:srid/emanote/${emanote-version} -- run --port ${PORT} --host ${HOST}
|
||||
nix run github:srid/emanote/${emanote-version} \
|
||||
-- run \
|
||||
--port ${toString PORT} \
|
||||
--host ${HOST}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user