mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2026-02-11 07:47:00 +01:00
Remove duplicate ReadWritePaths
This commit is contained in:
@@ -505,9 +505,12 @@ in
|
||||
]) ++ (lib.optionals (cfg.settings.media_store_path != "${cfg.dataDir}/media_store") [
|
||||
"${cfg.settings.media_store_path}:/var/lib/matrix-synapse/media_store"
|
||||
]);
|
||||
ReadWritePaths = map (listener: dirOf listener.path) (
|
||||
lib.filter (listener: listener.path != null) cfg.settings.listeners
|
||||
);
|
||||
ReadWritePaths = lib.pipe cfg.settings.listeners [
|
||||
(lib.filter (listener: listener.path != null))
|
||||
(map (listener: dirOf listener.path))
|
||||
(lib.filter (path: path != "/run/matrix-synapse"))
|
||||
lib.uniqueStrings
|
||||
];
|
||||
RemoveIPC = true;
|
||||
RestrictAddressFamilies = [
|
||||
"AF_INET"
|
||||
|
||||
@@ -442,9 +442,12 @@ in {
|
||||
]) ++ (lib.optionals (cfg.settings.media_store_path != "${cfg.dataDir}/media_store") [
|
||||
"${cfg.settings.media_store_path}:/var/lib/matrix-synapse/media_store"
|
||||
]);
|
||||
ReadWritePaths = map (listener: dirOf listener.path) (
|
||||
lib.filter (listener: listener.path != null) cfg.settings.listeners
|
||||
);
|
||||
ReadWritePaths = lib.pipe cfg.settings.listeners [
|
||||
(lib.filter (listener: listener.path != null))
|
||||
(map (listener: dirOf listener.path))
|
||||
(lib.filter (path: path != "/run/matrix-synapse"))
|
||||
lib.uniqueStrings
|
||||
];
|
||||
RemoveIPC = true;
|
||||
RestrictAddressFamilies = [
|
||||
"AF_INET"
|
||||
|
||||
Reference in New Issue
Block a user