Switch to a multihost/home-manager setup
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
systemd.services.msjd = {
|
||||
description = "Msjd";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
WorkingDirectory = "/home/me/main/msjd";
|
||||
ExecStart = "${pkgs.nodejs}/bin/node index.mjs";
|
||||
|
||||
User = "me";
|
||||
Restart = "always";
|
||||
RestartSec = 3;
|
||||
|
||||
Environment = [
|
||||
"NODE_ENV=production"
|
||||
"PORT=3709"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user