mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
require config path via cli, remove env var
This commit is contained in:
parent
3650fde0ac
commit
9b115b4110
4 changed files with 11 additions and 23 deletions
|
|
@ -85,17 +85,12 @@ in
|
|||
systemd.services.grapevine = {
|
||||
description = "Grapevine (Matrix homeserver)";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment = lib.mkMerge [
|
||||
{
|
||||
GRAPEVINE_CONFIG = configFile;
|
||||
}
|
||||
cfg.extraEnvironment
|
||||
];
|
||||
environment = cfg.extraEnvironment;
|
||||
|
||||
# Keep sorted
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
ExecStart = "${lib.getExe cfg.package}";
|
||||
ExecStart = "${lib.getExe cfg.package} --config ${configFile}";
|
||||
LockPersonality = true;
|
||||
MemoryDenyWriteExecute = true;
|
||||
PrivateDevices = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue