diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index f104563..1438612 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -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 ''; };