Remove emanote from everything
This commit is contained in:
parent
4a38f29273
commit
536bf095b9
1 changed files with 1 additions and 18 deletions
|
|
@ -1,9 +1,8 @@
|
||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
description = "A blog powered by Emanote running solely on Markdown files.";
|
description = "A future blog powered running solely on Markdown files.";
|
||||||
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
|
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com";
|
||||||
HOST = "localhost";
|
HOST = "localhost";
|
||||||
PORT = 5567;
|
PORT = 5567;
|
||||||
emanote-version = "1.4.0.0";
|
|
||||||
in {
|
in {
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -16,20 +15,4 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
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}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue