1
1
Fork 0

Trying something new with service

main
Bill Ewanick 2023-09-20 00:32:00 -04:00
parent ae69018842
commit 2d9612bb03
1 changed files with 14 additions and 6 deletions

View File

@ -21,18 +21,26 @@ in
cutesealfanpage-hakyll-site = { cutesealfanpage-hakyll-site = {
enable = true; enable = true;
description = "The hakyll executable that rebuilds the site when a new blog post is created."; description = "The hakyll executable that rebuilds the site when a new blog post is created.";
serviceConfig = { script = ''
ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./hakyll-site"; cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love
}; nix run .#hakyll-site
'';
# serviceConfig = {
# ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./hakyll-site";
# };
}; };
cutesealfanpage-generatePosts = { cutesealfanpage-generatePosts = {
enable = true; enable = true;
description = "The haskell script that creates the new post of the day."; description = "The haskell script that creates the new post of the day.";
startAt = "08:12:42"; startAt = "08:12:42";
serviceConfig = { script = ''
ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./generatePosts"; cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love
}; nix run .#generateSealPosts
'';
# serviceConfig = {
# ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./generatePosts";
# };
}; };
}; };