Refactor NixOS module

This commit is contained in:
thiloho
2025-01-03 11:29:48 +01:00
parent 741ec830a8
commit 7d79d60132
3 changed files with 241 additions and 237 deletions

View File

@@ -10,8 +10,7 @@ let
web = buildNpmPackage {
name = "web-app";
src = ../web-app;
npmDeps = importNpmLock { npmRoot = ../web-app; };
npmConfigHook = importNpmLock.npmConfigHook;
npmDepsHash = "sha256-RTyo7K/Hr1hBGtcBKynrziUInl91JqZl84NkJg16ufA=";
npmFlags = [ "--legacy-peer-deps" ];
installPhase = ''
mkdir -p $out/web-app
@@ -34,18 +33,9 @@ in
symlinkJoin {
name = "archtika";
pname = "archtika";
version = "1.0.0";
paths = [
web
api
];
meta = with lib; {
description = "A modern, performant and lightweight CMS";
homepage = "https://archtika.com";
license = licenses.mit;
maintainers = with maintainers; [ thiloho ];
platforms = platforms.unix;
};
}