Attempt to fix scripts
parent
dd7730690e
commit
6343a11f25
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue