fix service pnpm
This commit is contained in:
parent
970de66d8d
commit
84ca7ad136
1 changed files with 9 additions and 10 deletions
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
nodejs = pkgs.unstable.nodejs_20;
|
||||
nodePackages = (pkgs.nodePackages.override { nodejs = nodejs; });
|
||||
in {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_15;
|
||||
|
@ -106,14 +111,8 @@
|
|||
# todo: figure out how to get misskey to build in nix instead of requiring a manual build process
|
||||
#
|
||||
# pnpm2nix does not work due to misskey using workspaces
|
||||
environment.systemPackages = let nodejs = pkgs.unstable.nodejs_20;
|
||||
in with pkgs; [
|
||||
(nodePackages.override { inherit nodejs; }).pnpm
|
||||
nodejs
|
||||
cypress
|
||||
pkg-config
|
||||
vips
|
||||
];
|
||||
environment.systemPackages =
|
||||
[ nodejs nodePackages.pnpm pkgs.cypress pkgs.pkg-config pkgs.vips ];
|
||||
environment.sessionVariables = {
|
||||
CYPRESS_INSTALL_BINARY = "0";
|
||||
CYPRESS_RUN_BINARY = "${pkgs.cypress}/bin/Cypress";
|
||||
|
@ -130,7 +129,7 @@
|
|||
Environment = "NODE_ENV=production";
|
||||
WorkingDirectory = "/srv/misskey";
|
||||
User = "misskey";
|
||||
ExecStart = "pnpm migrateandrun";
|
||||
ExecStart = "${nodePackages.pnpm}/bin/pnpm migrateandrun";
|
||||
RuntimeDirectory = "misskey";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue