summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/matrix-media-gate.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-nginx/services/matrix/matrix-media-gate.nix')
-rwxr-xr-xhost/Rory-nginx/services/matrix/matrix-media-gate.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/matrix-media-gate.nix b/host/Rory-nginx/services/matrix/matrix-media-gate.nix
index 8c92a4c..a81d7a4 100755
--- a/host/Rory-nginx/services/matrix/matrix-media-gate.nix
+++ b/host/Rory-nginx/services/matrix/matrix-media-gate.nix
@@ -11,6 +11,7 @@
         RestartSec = "5";
         DynamicUser = true;
         StateDirectory = "matrix-media-gate";
+        WorkingDirectory = "/var/lib/matrix-media-gate";
       };
       environment = {
         "DOTNET_ENVIRONMENT" = "matrix-rory-gay";
@@ -21,11 +22,12 @@
       wantedBy = [ "multi-user.target" ];
       serviceConfig = {
         ExecStart = "${MatrixMediaGate}/bin/MatrixMediaGate";
-        ExecStartPre = "cp ${./appsettings.conduit-rory-gay.json} ./appsettings.conduit-rory-gay.json";
+        ExecStartPre = "${pkgs.busybox}/bin/cp ${./appsettings.conduit-rory-gay.json} ./appsettings.conduit-rory-gay.json";
         Restart = "always";
         RestartSec = "5";
         DynamicUser = true;
         StateDirectory = "matrix-media-gate";
+        WorkingDirectory = "/var/lib/matrix-media-gate";
       };
       environment = {
         "DOTNET_ENVIRONMENT" = "conduit-rory-gay";