diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index c92f295..ef757d3 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -18,13 +18,32 @@ in "cutesealfanpage.love" = { serverAliases = [ "www.cutesealfanpage.love" ]; extraConfig = '' - root * ${PROJECT_ROOT}/cutesealfanpage.love/ + root * ${PROJECT_ROOT}/cutesealfanpage.love/_site file_server ''; }; }; }; + systemd.services = { + cutesealfanpage-hakyll-site = { + enable = true; + description = "The hakyll executable that rebuilds the site when a new blog post is created."; + script = '' + nix run .#hakyll-site -- watch --no-server + ''; + }; + + cutesealfanpage-generatePosts = { + enable = true; + description = "The haskell script that creates the new post of the day."; + startAt = "08:12:42"; + script = '' + nix run .#generateSealPosts + ''; + }; + }; + # when in doubt, clear away the certs with # sudo rm -rf /var/lib/acme/ security.acme.acceptTerms = true;