nixos/synapse: add extraArgs option (#455058)

This commit is contained in:
Maximilian Bosch
2025-11-04 11:05:05 +00:00
committed by GitHub

View File

@@ -3,6 +3,7 @@
lib, lib,
options, options,
pkgs, pkgs,
utils,
... ...
}: }:
@@ -1297,6 +1298,15 @@ in
''; '';
}; };
extraArgs = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "--no-secrets-in-config" ];
description = ''
Extra command lines argument that are passed to synapse and workers.
'';
};
extraConfigFiles = mkOption { extraConfigFiles = mkOption {
type = types.listOf types.path; type = types.listOf types.path;
default = [ ]; default = [ ];
@@ -1541,7 +1551,8 @@ in
] ]
++ cfg.extraConfigFiles ++ cfg.extraConfigFiles
)} )}
--keys-directory ${cfg.dataDir} --keys-directory ${cfg.dataDir} \
${utils.escapeSystemdExecArgs cfg.extraArgs}
''; '';
}; };
} }
@@ -1574,7 +1585,8 @@ in
${concatMapStringsSep "\n " (x: "--config-path ${x} \\") ( ${concatMapStringsSep "\n " (x: "--config-path ${x} \\") (
[ configFile ] ++ cfg.extraConfigFiles [ configFile ] ++ cfg.extraConfigFiles
)} )}
--keys-directory ${cfg.dataDir} --keys-directory ${cfg.dataDir} \
${utils.escapeSystemdExecArgs cfg.extraArgs}
''; '';
}; };
} }