diff --git a/flake.nix b/flake.nix index 4db40ad..8c647a7 100644 --- a/flake.nix +++ b/flake.nix @@ -74,11 +74,10 @@ osds-site = { layers = [ { - # path = ./nixos-apps/ewanick.com; - # pathString = "nixos-apps/ewanick.com"; + path = ./nixos-apps/ewanick.com; + pathString = "nixos-apps/ewanick.com"; } ]; - baseUrl = "ewanick.com"; port = 5567; }; }; diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index f708e36..aada46d 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -14,7 +14,7 @@ in { }; }; - systemd.user.services = { + systemd.services = { cutesealfanpage-hakyll-site = { enable = true; description = "The hakyll executable that rebuilds the site when a new blog post is created."; diff --git a/nixos-apps/default.nix b/nixos-apps/default.nix index cdba9be..55f17e6 100644 --- a/nixos-apps/default.nix +++ b/nixos-apps/default.nix @@ -5,11 +5,12 @@ ./cutesealfanpage.love.nix - # ./ewanick.com.nix + ./ewanick.com.nix ./git.ewanick.com.nix - # ./paperless.ewanick.com.nix ./fancytypist.com.nix + + # ./paperless.ewanick.com.nix ]; # when in doubt, clear away the certs with diff --git a/nixos-apps/ewanick.com.nix b/nixos-apps/ewanick.com.nix index ed5fc1b..6c9ef71 100644 --- a/nixos-apps/ewanick.com.nix +++ b/nixos-apps/ewanick.com.nix @@ -3,7 +3,7 @@ PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/ewanick.com"; HOST = "localhost"; PORT = 5567; - emanote-version = "1.4.0"; + emanote-version = "1.4.0.0"; in { services.caddy = { enable = true; @@ -21,13 +21,14 @@ in { ewanick-site = { enable = true; description = "A blog powered by Emanote running solely on Markdown files."; - path = with pkgs; [ - nix - git - ]; + path = with pkgs; [nix git]; + wantedBy = ["multi-user.target"]; script = '' cd ${PROJECT_ROOT} - nix run github:srid/emanote/${emanote-version} -- run --port ${PORT} --host ${HOST} + nix run github:srid/emanote/${emanote-version} \ + -- run \ + --port ${toString PORT} \ + --host ${HOST} ''; }; };