From a723bd6087a379c23d62e5404c3e68e520a87643 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 20 Jun 2024 17:30:14 +0200 Subject: [PATCH] Update --- hosts/modules/server/www/homepage.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/modules/server/www/homepage.nix b/hosts/modules/server/www/homepage.nix index 842cc7a..c7b3a8a 100644 --- a/hosts/modules/server/www/homepage.nix +++ b/hosts/modules/server/www/homepage.nix @@ -1,6 +1,7 @@ { pkgs, ... }: { services.nginx.virtualHosts."home.anotherhadi.com" = { enableACME = true; + root = pkgs.buildNpmPackage { pname = "homepage"; version = "0.0.0"; @@ -14,10 +15,19 @@ npmDepsHash = "sha256-YxdrNTBbbgMHJ0WoSHePxdM7UJLbKsSbObW8M1uArUg="; + buildPhase = '' + npm install + npm run build + + mkdir $out + mv build $out + ''; + meta = { description = "test"; homepage = "https://text.com"; - }; + } + "/build"; }; + }; }