diff --git a/nix/modules/customer-portal/flake-module.nix b/nix/modules/customer-portal/flake-module.nix index ab34196..f174e13 100755 --- a/nix/modules/customer-portal/flake-module.nix +++ b/nix/modules/customer-portal/flake-module.nix @@ -88,10 +88,17 @@ serviceConfig = { ExecStart = utils.escapeSystemdExecArgs [ - (lib.getExe cfg.package) + (lib.getExe pkgs.bun) + "run" + "${cfg.package}/server/index.mjs" "--config" (format.generate "config.json" cfg.settings) ]; + # ExecStart = utils.escapeSystemdExecArgs [ + # (lib.getExe cfg.package) + # "--config" + # (format.generate "config.json" cfg.settings) + # ]; StateDirectory = "amarth-customer-portal"; CacheDirectory = "amarth-customer-portal"; diff --git a/nix/packages/flake-module.nix b/nix/packages/flake-module.nix index 4bf2325..423fbac 100755 --- a/nix/packages/flake-module.nix +++ b/nix/packages/flake-module.nix @@ -30,10 +30,6 @@ mkdir -p $out/bin cp -r ./.output/* $out - - echo "#!/usr/bin/env bash - ${(lib.getExe pkgs.bun)} run ../server/index.mjs" > $out/bin/${pname} - chmod +x $out/bin/${pname} runHook postInstall '';