From 848045e34993c921bcd51f4a87219c3c6cbf8053 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Fri, 11 Aug 2023 20:28:51 -0400 Subject: [PATCH] Add scripts to try and get this to work --- nixos-apps/cutesealfanpage.love.nix | 9 ++++----- nixos-apps/cutesealfanpage.love/generatePosts.sh | 2 ++ nixos-apps/cutesealfanpage.love/hakyll-site.sh | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100755 nixos-apps/cutesealfanpage.love/generatePosts.sh create mode 100755 nixos-apps/cutesealfanpage.love/hakyll-site.sh diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index 5fe0b48..44c4a79 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -22,7 +22,7 @@ in enable = true; description = "The hakyll executable that rebuilds the site when a new blog post is created."; serviceConfig = { - ExecStart = "cd ${PROJECT_ROOT}/cutesealfanpage.love; nix run .#hakyll-site -- watch --no-server"; + ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./hakyll-site"; }; # script = '' # cd ${PROJECT_ROOT}/cutesealfanpage.love @@ -34,10 +34,9 @@ in enable = true; description = "The haskell script that creates the new post of the day."; startAt = "08:12:42"; - script = '' - cd ${PROJECT_ROOT}/cutesealfanpage.love - ${pkgs.nix}/bin/nix run .#generateSealPosts - ''; + serviceConfig = { + ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./generatePosts"; + }; }; }; diff --git a/nixos-apps/cutesealfanpage.love/generatePosts.sh b/nixos-apps/cutesealfanpage.love/generatePosts.sh new file mode 100755 index 0000000..880f708 --- /dev/null +++ b/nixos-apps/cutesealfanpage.love/generatePosts.sh @@ -0,0 +1,2 @@ +cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love +nix run .#generateSealPosts \ No newline at end of file diff --git a/nixos-apps/cutesealfanpage.love/hakyll-site.sh b/nixos-apps/cutesealfanpage.love/hakyll-site.sh new file mode 100755 index 0000000..651ab1f --- /dev/null +++ b/nixos-apps/cutesealfanpage.love/hakyll-site.sh @@ -0,0 +1,2 @@ +cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love +nix run .#hakyll-site -- watch --no-server \ No newline at end of file