Improve site flake by changing root
parent
ba5408499d
commit
9e9532743f
|
@ -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"
|
||||
# ];
|
||||
# };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue