diff --git a/nixos/modules/services/matrix/conduit.nix b/nixos/modules/services/matrix/conduit.nix index c8d89ed33f51..16c4f571da94 100644 --- a/nixos/modules/services/matrix/conduit.nix +++ b/nixos/modules/services/matrix/conduit.nix @@ -138,10 +138,12 @@ in "~@privileged" ]; StateDirectory = "matrix-conduit"; + StateDirectoryMode = "0700"; ExecStart = "${cfg.package}/bin/conduit"; Restart = "on-failure"; RestartSec = 10; StartLimitBurst = 5; + UMask = "077"; }; }; };