This commit is contained in:
Hadi 2024-06-20 17:30:14 +02:00
parent 3950c68160
commit a723bd6087

View File

@ -1,6 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
services.nginx.virtualHosts."home.anotherhadi.com" = { services.nginx.virtualHosts."home.anotherhadi.com" = {
enableACME = true; enableACME = true;
root = pkgs.buildNpmPackage { root = pkgs.buildNpmPackage {
pname = "homepage"; pname = "homepage";
version = "0.0.0"; version = "0.0.0";
@ -14,10 +15,19 @@
npmDepsHash = "sha256-YxdrNTBbbgMHJ0WoSHePxdM7UJLbKsSbObW8M1uArUg="; npmDepsHash = "sha256-YxdrNTBbbgMHJ0WoSHePxdM7UJLbKsSbObW8M1uArUg=";
buildPhase = ''
npm install
npm run build
mkdir $out
mv build $out
'';
meta = { meta = {
description = "test"; description = "test";
homepage = "https://text.com"; homepage = "https://text.com";
}; } + "/build";
}; };
}; };
} }