1
1
Fork 0

Attempt to fix scripts

main
Bill Ewanick 2023-08-09 20:49:47 -04:00
parent 9b01406ed1
commit 190b0308f8
1 changed files with 9 additions and 14 deletions

View File

@ -4,21 +4,13 @@ let
PROJECT_ROOT = builtins.toString ./.; PROJECT_ROOT = builtins.toString ./.;
in in
{ {
# nixpkgs.overlays = [
# (self: super: {
# newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
# })
# ];
# environment.systemPackages = [ pkgs.newSealPost ];
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
"cutesealfanpage.love" = { "cutesealfanpage.love" = {
serverAliases = [ "www.cutesealfanpage.love" ]; serverAliases = [ "www.cutesealfanpage.love" ];
extraConfig = '' extraConfig = ''
root * ${PROJECT_ROOT}/cutesealfanpage.love/_site root * ../cutesealfanpage.love/_site
file_server file_server
''; '';
}; };
@ -29,10 +21,13 @@ 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.";
script = '' serviceConfig = {
cd ${PROJECT_ROOT}/cutesealfanpage.love ExecStart = "cd ../cutesealfanpage.love; nix run .#hakyll-site -- watch --no-server";
${pkgs.nix}/bin/nix run .#hakyll-site -- watch --no-server };
''; # script = ''
# cd ${PROJECT_ROOT}/cutesealfanpage.love
# ${pkgs.nix}/bin/nix run .#hakyll-site -- watch --no-server
# '';
}; };
cutesealfanpage-generatePosts = { cutesealfanpage-generatePosts = {
@ -40,7 +35,7 @@ in
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";
script = '' script = ''
cd ${PROJECT_ROOT}/cutesealfanpage.love cd ../cutesealfanpage.love
${pkgs.nix}/bin/nix run .#generateSealPosts ${pkgs.nix}/bin/nix run .#generateSealPosts
''; '';
}; };