From 1643aaf283ddf00b433108e5447f87adfdfec7f0 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Wed, 9 Aug 2023 21:13:29 -0400 Subject: [PATCH] Don't use relative paths --- nixos-apps/cutesealfanpage.love.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index 1438612..0cf75b5 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -10,7 +10,7 @@ in "cutesealfanpage.love" = { serverAliases = [ "www.cutesealfanpage.love" ]; extraConfig = '' - root * ../cutesealfanpage.love/_site + root * ${PROJECT_ROOT}/cutesealfanpage.love/_site file_server ''; }; @@ -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 ../cutesealfanpage.love; nix run .#hakyll-site -- watch --no-server"; + ExecStart = "cd ${PROJECT_ROOT}/cutesealfanpage.love; nix run .#hakyll-site -- watch --no-server"; }; # script = '' # cd ${PROJECT_ROOT}/cutesealfanpage.love @@ -35,7 +35,7 @@ in description = "The haskell script that creates the new post of the day."; startAt = "08:12:42"; script = '' - cd ../cutesealfanpage.love + cd ${PROJECT_ROOT}/cutesealfanpage.love ${pkgs.nix}/bin/nix run .#generateSealPosts ''; };