From 830f5a5ef389def39c0b0a2641d35d87e4c2d5d4 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 29 Oct 2023 23:38:56 +0530 Subject: [PATCH] update dendrite config --- hosts/rico1/services/dendrite/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/rico1/services/dendrite/default.nix b/hosts/rico1/services/dendrite/default.nix index af3b033..ec36313 100644 --- a/hosts/rico1/services/dendrite/default.nix +++ b/hosts/rico1/services/dendrite/default.nix @@ -12,10 +12,17 @@ wantedBy = ["multi-user.target"]; serviceConfig = { Type = "simple"; + DynamicUser = true; + StateDirectory = "dendrite"; + WorkingDirectory = "/var/lib/dendrite"; + RuntimeDirectory = "dendrite"; + RuntimeDirectoryMode = "0700"; LimitNOFILE = 65535; ExecStart = '' ${pkgs.dendrite}/bin/dendrite -http-bind-address 127.0.0.1:8008 -https-bind-address 127.0.0.1:8448 -config ${./config.yaml} ''; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + Restart = "on-failure"; }; }; }