mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2026-06-25 17:34:35 +02:00
{synapse,workers}: pass signing_key_path through LoadCredential
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
throw',
|
||||
format
|
||||
}:
|
||||
{ pkgs, lib, config, ... }: let
|
||||
|
||||
{ pkgs, lib, options, config, ... }: let
|
||||
opt = options.services.matrix-synapse-next;
|
||||
cfg = config.services.matrix-synapse-next;
|
||||
wcfg = config.services.matrix-synapse-next.workers;
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
cfgText = "config.services.matrix-synapse-next";
|
||||
wcfgText = "config.services.matrix-synapse-next.workers";
|
||||
|
||||
usesCustomSigningKeyPath = cfg.settings.signing_key_path != (opt.settings.type.getSubOptions { }).signing_key_path.default;
|
||||
|
||||
inherit (lib) types mkOption mkEnableOption mkIf mkMerge literalExpression;
|
||||
|
||||
mkWorkerCountOption = workerType: mkOption {
|
||||
@@ -449,6 +451,9 @@ in {
|
||||
(lib.filter (path: path != "/run/matrix-synapse"))
|
||||
lib.uniqueStrings
|
||||
];
|
||||
LoadCredential = lib.mkIf usesCustomSigningKeyPath [
|
||||
"signing_key:${cfg.settings.signing_key_path}"
|
||||
];
|
||||
RemoveIPC = true;
|
||||
RestrictAddressFamilies = [
|
||||
"AF_INET"
|
||||
|
||||
Reference in New Issue
Block a user