Attempt to fix scripts
parent
9b01406ed1
commit
190b0308f8
|
@ -4,21 +4,13 @@ let
|
|||
PROJECT_ROOT = builtins.toString ./.;
|
||||
in
|
||||
{
|
||||
# nixpkgs.overlays = [
|
||||
# (self: super: {
|
||||
# newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
|
||||
# })
|
||||
# ];
|
||||
|
||||
# environment.systemPackages = [ pkgs.newSealPost ];
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"cutesealfanpage.love" = {
|
||||
serverAliases = [ "www.cutesealfanpage.love" ];
|
||||
extraConfig = ''
|
||||
root * ${PROJECT_ROOT}/cutesealfanpage.love/_site
|
||||
root * ../cutesealfanpage.love/_site
|
||||
file_server
|
||||
'';
|
||||
};
|
||||
|
@ -29,10 +21,13 @@ in
|
|||
cutesealfanpage-hakyll-site = {
|
||||
enable = true;
|
||||
description = "The hakyll executable that rebuilds the site when a new blog post is created.";
|
||||
script = ''
|
||||
cd ${PROJECT_ROOT}/cutesealfanpage.love
|
||||
${pkgs.nix}/bin/nix run .#hakyll-site -- watch --no-server
|
||||
'';
|
||||
serviceConfig = {
|
||||
ExecStart = "cd ../cutesealfanpage.love; 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 = {
|
||||
|
@ -40,7 +35,7 @@ in
|
|||
description = "The haskell script that creates the new post of the day.";
|
||||
startAt = "08:12:42";
|
||||
script = ''
|
||||
cd ${PROJECT_ROOT}/cutesealfanpage.love
|
||||
cd ../cutesealfanpage.love
|
||||
${pkgs.nix}/bin/nix run .#generateSealPosts
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue