From 644eac31e6c163360743be630b198d988fb6460f Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 29 Feb 2024 11:03:01 +0100 Subject: [PATCH 1/2] nixos/matrix-sliding-sync: document unix socket support in SYNCV3_BINDADDR --- nixos/modules/services/matrix/matrix-sliding-sync.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/matrix/matrix-sliding-sync.nix b/nixos/modules/services/matrix/matrix-sliding-sync.nix index 8b22cd7dba80..078fe211c8d5 100644 --- a/nixos/modules/services/matrix/matrix-sliding-sync.nix +++ b/nixos/modules/services/matrix/matrix-sliding-sync.nix @@ -37,7 +37,7 @@ in type = lib.types.str; default = "127.0.0.1:8009"; example = "[::]:8008"; - description = lib.mdDoc "The interface and port to listen on."; + description = lib.mdDoc "The interface and port or path (for unix socket) to listen on."; }; SYNCV3_LOG_LEVEL = lib.mkOption { From f0097cf1d9033d1f11df443d12d0648f899002df Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 8 Mar 2024 23:16:05 +0100 Subject: [PATCH 2/2] nixos/matrix-sliding-sync: create runtime directory in /run/matrix-sliding-sync this patch enables the creation of a runtime directory with the default mode 0755 in /run/matrix-sliding-sync to offer a simple option for SYNCV3_BINDADDR when using unix sockets. --- nixos/modules/services/matrix/matrix-sliding-sync.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/matrix/matrix-sliding-sync.nix b/nixos/modules/services/matrix/matrix-sliding-sync.nix index 078fe211c8d5..d62e41bebd64 100644 --- a/nixos/modules/services/matrix/matrix-sliding-sync.nix +++ b/nixos/modules/services/matrix/matrix-sliding-sync.nix @@ -98,6 +98,7 @@ in ExecStart = lib.getExe cfg.package; StateDirectory = "matrix-sliding-sync"; WorkingDirectory = "%S/matrix-sliding-sync"; + RuntimeDirectory = "matrix-sliding-sync"; Restart = "on-failure"; RestartSec = "1s"; };