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 = { users.users.misskey = {
isSystemUser = true; isSystemUser = true;
group = "misskey"; group = "misskey";
createHome = true;
}; };
# todo: figure out how to get misskey to build in nix instead of requiring a manual build process # 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 = { systemd.services.misskey = {
enable = true; enable = true;
description = "Misskey daemon"; description = "Misskey daemon";
#path = [ nodejs nodePackages.pnpm pkgs.coreutils pkgs.cypress pkgs.pkg-config pkgs.vips ];
serviceConfig = { serviceConfig = {
Restart = "always"; Restart = "always";
StandardOutput = "syslog"; StandardOutput = "syslog";
StandardError = "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"; WorkingDirectory = "/srv/misskey";
User = "misskey"; User = "misskey";
ExecStart = "${nodePackages.pnpm}/bin/pnpm start"; ExecStart = "${nodePackages.pnpm}/bin/pnpm start";