Add secrets and cleanup

This commit is contained in:
2026-07-07 09:25:07 +01:00
parent b5c495a094
commit 822f654d6a
9 changed files with 75 additions and 7 deletions
+7 -2
View File
@@ -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;
};
}