From 9e9532743f44050c31d35494ed4fdfd1b688708b Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Thu, 21 Sep 2023 15:27:14 -0400 Subject: [PATCH] Improve site flake by changing root --- nixos-apps/cutesealfanpage.love.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index b5769ed..e9040a1 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -1,7 +1,7 @@ { pkgs, ... }: let - PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps"; + PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love"; in { services.caddy = { @@ -10,7 +10,7 @@ in "cutesealfanpage.love" = { serverAliases = [ "www.cutesealfanpage.love" ]; extraConfig = '' - root * ${PROJECT_ROOT}/cutesealfanpage.love/_site + root * ${PROJECT_ROOT}/_site file_server ''; }; @@ -26,7 +26,7 @@ in git ]; script = '' - cd ${PROJECT_ROOT}/cutesealfanpage.love + cd ${PROJECT_ROOT} nix run .#hakyll-site -- watch --no-server ''; }; @@ -40,7 +40,7 @@ in git ]; script = '' - cd ${PROJECT_ROOT}/cutesealfanpage.love + cd ${PROJECT_ROOT} nix run .#generateSealPosts ''; }; @@ -52,11 +52,4 @@ in security.acme.defaults.email = "admin@cutesealfanpage.love"; # uncomment this to use the staging server # security.acme.server = "https://acme-staging-v02.api.letsencrypt.org/directory"; - - # services.cron = { - # enable = true; - # systemCronJobs = [ - # "12 12 * * * alice . /etc/profile; ${pkgs.newSealPost} > /home/alice/logs/backup.log 2>&1" - # ]; - # }; }