hacks to get misskey to run
This commit is contained in:
parent
ffbe97a9ff
commit
c334b1b58f
1 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue