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 = {
|
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";
|
||||||
|
|
Loading…
Reference in a new issue