1
1
Fork 0

Improve site flake by changing root

main
Bill Ewanick 2023-09-21 15:27:14 -04:00
parent ba5408499d
commit 9e9532743f
1 changed files with 4 additions and 11 deletions

View File

@ -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"
# ];
# };
}