hacks to get misskey to run

This commit is contained in:
jaina heartles 2024-02-27 12:36:08 -08:00
parent ffbe97a9ff
commit c334b1b58f

View file

@ -112,6 +112,7 @@ in {
users.users.misskey = {
isSystemUser = true;
group = "misskey";
createHome = true;
};
# todo: figure out how to get misskey to build in nix instead of requiring a manual build process
@ -127,12 +128,17 @@ in {
systemd.services.misskey = {
enable = true;
description = "Misskey daemon";
#path = [ nodejs nodePackages.pnpm pkgs.coreutils pkgs.cypress pkgs.pkg-config pkgs.vips ];
serviceConfig = {
Restart = "always";
StandardOutput = "syslog";
StandardError = "syslog";
Environment = "NODE_ENV=production";
Environment = [
"NODE_ENV=production"
# TODO Fix this
"PATH=/run/wrappers/bin:/var/empty/.nix-profile/bin:/nix/profile/bin:/var/empty/.local/state/nix/profile/bin:/etc/profiles/per-user/misskey/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"
];
WorkingDirectory = "/srv/misskey";
User = "misskey";
ExecStart = "${nodePackages.pnpm}/bin/pnpm start";