From e3e53c5fe945db58b74a17bd913937ee5b3e66fa Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:58:41 +0000 Subject: [PATCH] Add build to nodejs website --- nixos-configurations/server/default.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index e6bd295..ed4dce9 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ inputs, pkgs, ... }: { imports = [ @@ -41,6 +41,23 @@ forceSSL = true; root = inputs.website; }; + "aurora.thilohohlt.com" = { + enableACME = true; + forceSSL = true; + root = pkgs.buildNpmPackage { + name = "build-aurora-blog"; + buildInputs = with pkgs; [ + nodejs_18 + ]; + src = builtins.path { path = ./.; name = "aurora-blog-example"; }; + npmDepsHash = ""; + npmBuild = "npm run build"; + installPhase = '' + mkdir $out + cp -r dist/* $out + ''; + }; + }; }; }; };