Compare commits
2 commits
ecc088db2d
...
f2cbeebbb5
Author | SHA1 | Date | |
---|---|---|---|
f2cbeebbb5 | |||
fc6be0c4c2 |
1 changed files with 35 additions and 7 deletions
|
@ -29,16 +29,29 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
# Encryption support
|
# Encryption support
|
||||||
extraSettings = {
|
# TODO(tlater): Enable when
|
||||||
"de.sorunome.msc2409.push_ephemeral" = true;
|
# https://github.com/matrix-org/matrix-hookshot/issues/1060 is
|
||||||
push_ephemeral = true;
|
# fixed
|
||||||
"org.matrix.msc3202" = true;
|
# extraSettings = {
|
||||||
};
|
# "de.sorunome.msc2409.push_ephemeral" = true;
|
||||||
|
# push_ephemeral = true;
|
||||||
|
# "org.matrix.msc3202" = true;
|
||||||
|
# };
|
||||||
|
|
||||||
runtimeRegistration = "${cfg.registrationFile}";
|
runtimeRegistration = "${cfg.registrationFile}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# users = {
|
||||||
|
# users.matrix-hookshot = {
|
||||||
|
# home = "/run/matrix-hookshot";
|
||||||
|
# group = "matrix-hookshot";
|
||||||
|
# isSystemUser = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# groups.matrix-hookshot = { };
|
||||||
|
# };
|
||||||
|
|
||||||
systemd.services.matrix-hookshot = {
|
systemd.services.matrix-hookshot = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = lib.mkForce "exec";
|
Type = lib.mkForce "exec";
|
||||||
|
@ -49,6 +62,7 @@ in
|
||||||
# Some library in matrix-hookshot wants a home directory
|
# Some library in matrix-hookshot wants a home directory
|
||||||
Environment = [ "HOME=/run/matrix-hookshot" ];
|
Environment = [ "HOME=/run/matrix-hookshot" ];
|
||||||
|
|
||||||
|
# User = "matrix-hookshot";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
StateDirectory = "matrix-hookshot";
|
StateDirectory = "matrix-hookshot";
|
||||||
RuntimeDirectory = "matrix-hookshot";
|
RuntimeDirectory = "matrix-hookshot";
|
||||||
|
@ -62,7 +76,11 @@ in
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
RestrictAddressFamilies = [ "AF_INET AF_INET6" ];
|
RestrictAddressFamilies = [
|
||||||
|
# "AF_UNIX"
|
||||||
|
"AF_INET"
|
||||||
|
"AF_INET6"
|
||||||
|
];
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
ProtectProc = "invisible";
|
ProtectProc = "invisible";
|
||||||
|
@ -71,6 +89,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# services.redis.servers.matrix-hookshot = {
|
||||||
|
# enable = true;
|
||||||
|
# user = "matrix-hookshot";
|
||||||
|
# };
|
||||||
|
|
||||||
services.matrix-hookshot = {
|
services.matrix-hookshot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -89,6 +112,8 @@ in
|
||||||
|
|
||||||
bot.displayname = "Hookshot";
|
bot.displayname = "Hookshot";
|
||||||
|
|
||||||
|
# cache.redisUri = "redis://${config.services.redis.servers.matrix-hookshot.unixSocket}";
|
||||||
|
|
||||||
generic = {
|
generic = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
outbound = false;
|
outbound = false;
|
||||||
|
@ -98,7 +123,10 @@ in
|
||||||
allowJsTransformationFunctions = true;
|
allowJsTransformationFunctions = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
encryption.storagePath = "/var/lib/matrix-hookshot/cryptostore";
|
# TODO(tlater): Enable when
|
||||||
|
# https://github.com/matrix-org/matrix-hookshot/issues/1060 is
|
||||||
|
# fixed
|
||||||
|
# encryption.storagePath = "/var/lib/matrix-hookshot/cryptostore";
|
||||||
|
|
||||||
permissions = [
|
permissions = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue