Add secrets and cleanup
This commit is contained in:
+7
-2
@@ -1,5 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
projectDir ="${config.users.users."me".home}/main/msjd";
|
||||
in
|
||||
{
|
||||
systemd.services.msjd = {
|
||||
description = "Msjd";
|
||||
@@ -7,7 +10,7 @@
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
WorkingDirectory = "/home/me/main/msjd";
|
||||
WorkingDirectory = projectDir;
|
||||
ExecStart = "${pkgs.nodejs}/bin/node index.mjs";
|
||||
|
||||
User = "me";
|
||||
@@ -19,5 +22,7 @@
|
||||
"PORT=3709"
|
||||
];
|
||||
};
|
||||
|
||||
ConditionPathIsDirectory = projectDir;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user