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 = {
enable = true;
description = "The hakyll executable that rebuilds the site when a new blog post is created.";
serviceConfig = {
ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./hakyll-site";
};
script = ''
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 = {
enable = true;
description = "The haskell script that creates the new post of the day.";
startAt = "08:12:42";
serviceConfig = {
ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./generatePosts";
};
script = ''
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";
# };
};
};