Commit Graph

190 Commits

Author SHA1 Message Date
h7x4
729d9ddec1
Upgrade matrix-sdk-crypto-nodejs and reverse-deps to fix build with new rust version (#348448) 2024-11-01 18:30:36 +01:00
Martin Weinelt
6306bf790e
matrix-sliding-sync: drop
On the 2024 matrix conference the EOL for the sliding-sync-proxy was
announced to be 2024-10-15. While the repo does not yet reflect that
state, we should not be taking the the sliding-sync proxy into NixOS
24.11 under any circumstances.
2024-10-20 23:19:33 +02:00
Daniel Olsen
0ac0623e15 mjolnir: 1.6.5 -> 1.8.3 2024-10-14 07:43:39 +02:00
Kevin Cox
fb9b5c806b
mautrix-meta: drop maintainership Rutherther (#346916) 2024-10-06 14:45:10 -04:00
Rutherther
379ca4e67f mautrix-meta: drop maintainership Rutherther 2024-10-06 20:33:42 +02:00
Kevin Cox
0dcfe7e565
nixos.mautrix-meta: Update config to 0.4 format
The package has been updated to 0.4 which will result in an auto-migration of the config. This updates our config to match the new expected format. Assertions have been added to warn users that they need to migrate their configuration.
2024-09-25 17:35:19 -04:00
Finn Landweber
6974feb92c
nixos/matrix-hookshot: init module 2024-09-18 13:03:42 +02:00
M. Ian Graham
70f53bf307
nixos/dendrite: fix broken example conf link
Example config yaml has moved to: https://github.com/matrix-org/dendrite/blob/main/dendrite-sample.yaml
2024-09-15 21:31:37 +09:00
Martin Weinelt
420398889e
nixos/matrix-appservice-irc: allow disabling media lifetime
Posting media URLs to IRC that vanish, when they can be refetched from
the remote server they were originated from is not great UX.
2024-09-09 20:35:13 +02:00
Nick Cao
8edc668914
matrix: migrated links to new element-hq org (#339817) 2024-09-05 15:56:44 -04:00
paumr
0088e7d130 matrix: migrated links to new element-hq org
The vector-im GitHub organisation has been renamed to element-hq:
1d586281f0/profile/README.md
2024-09-05 16:40:06 +02:00
Martin Weinelt
d3df411913
nixos/matrix-appservice-irc: media proxying support
Adds required options for serving authenticated media and the key
generation logic.
2024-09-04 21:05:50 +02:00
Frédéric Christ
aab2bd233c nixos/mautrix-signal: Adapt to new configuration
With mautrix-signal v0.7.0 the bridge is built upon the bridgev2
architecture. With this, the configuration file was slightly rearranged.
Options like login_shared_secret_map and double_puppet_server_map were
dropped.
2024-09-02 20:47:10 +02:00
Frédéric Christ
e38c90b7c9 nixos/mautrix-signal: Reformat code 2024-09-02 20:40:36 +02:00
Felix Buehler
0a78cd4f73 nixos/services.pantalaimon-headless: remove with lib; 2024-08-30 23:00:12 +02:00
Felix Buehler
ec70164f24 nixos/services.mx-puppet-discord: remove with lib; 2024-08-30 23:00:12 +02:00
Felix Buehler
0f517df99c nixos/services.mjolnir: remove with lib; 2024-08-30 23:00:11 +02:00
Felix Buehler
167cad7457 nixos/services.mautrix-telegram: remove with lib; 2024-08-30 23:00:11 +02:00
Felix Buehler
3bc24ab5d9 nixos/services.mautrix-facebook: remove with lib; 2024-08-30 23:00:11 +02:00
Felix Buehler
24edb42066 nixos/services.matrix-conduit: remove with lib; 2024-08-30 23:00:11 +02:00
Felix Buehler
ca941e19f3 nixos/services.matrix-appservice-irc: remove with lib; 2024-08-30 23:00:11 +02:00
Felix Buehler
0db184a132 nixos/services.matrix-appservice-discord: remove with lib; 2024-08-30 22:59:29 +02:00
Alexander Linder
06855f1cd8
nixos/mautrix-whatsapp: automatic appservice registration option, pull login_shared_secret_map setting from env file (#311681)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-08-22 14:14:51 +02:00
Sandro
33f83c6252
Merge pull request #316977 from eclairevoyant/fix-mkEnableOption
treewide: fix mkEnableOption usage
2024-06-25 22:42:16 +02:00
Guanran928
ba7e7693dc
nixos/matrix-synapse: fix typo 2024-06-20 13:53:38 +08:00
éclairevoyant
7d8742da87
treewide: fix mkEnableOption usage 2024-06-14 02:41:42 -04:00
Niklas Korz
346d23fdf2 nixos/mautrix-signal: add module 2024-05-05 13:57:50 +02:00
piegames
3813ff1a48 conduit: Drop piegames from maintainers 2024-05-03 13:38:00 +02:00
Patrick Steinhardt
ff3358b3f5 nixos/matrix-appservice-irc: fix chown of registration.yml in pre-script
Before the startup, the matrix-appservice-irc service sets up the
registration file such that it can be used by matrix-synapse. Part of
that setup requires us to change the group of said file so that the home
server can read it. Consequently, we need CAP_CHOWN and require that the
@chown system calls are allowed.

While we supposedly set up both of these, the setup of system calls is
broken as we have both an allow and a deny list of syscalls. But while
the allow list contains "@chown", the deny list contains "@privileged"
which contains "@chown" itself. So ultimately, we end up denying
"@chown".

Fix this issue by specifying "@chown" after the deny list.
2024-04-27 19:04:08 +02:00
nat-418
d24376448b
docs(conduit): update link to config docs 2024-04-24 09:11:03 +02:00
Maximilian Bosch
52432f0a45
Merge pull request #302586 from Ma27/synapse-initialscript-docs
nixos/matrix-synapse: don't use `services.postgresql.initialScript` in setup example
2024-04-13 20:07:12 +00:00
stuebinm
6afb255d97 nixos: remove all uses of lib.mdDoc
these changes were generated with nixq 0.0.2, by running

  nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix

two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.

Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
2024-04-13 10:07:35 -07:00
Maximilian Bosch
a3d3cdf5d9
nixos/matrix-synapse: don't use services.postgresql.initialScript in setup example
Closes #285688

This is misleading because `initialScript` will only be executed at the
*very first* run of postgresql. I.e. when deploying synapse to a server
with an existing postgresql, this won't work.

We don't have a good way of automatically provisioning databases
_declaratively_, so for now just explain what needs to be done here and
leave it to the user how to include this into their deployment.
2024-04-10 17:43:02 +02:00
Bjørn Forsman
a29010fe79 nixos: improve many 'enable' descriptions 2024-04-09 07:10:17 +02:00
Colin
5468e6802a nixos/mautrix-meta: fix lax enable check
enabledInstances is an attrset: the previous logic would always pass and
result in, for example, a `mautrix-meta` and a
`mautrix-meta-registration` group being shipped to every nixos machine
whether mautrix was enabled or not.
2024-04-05 20:05:41 +00:00
Kevin Cox
9c636e8416
Merge pull request #296718 from Rutherther/mautrix-meta-init
mautrix-meta: init at 0.2.0
2024-04-04 18:07:19 -04:00
Rutherther
5effc7956a mautrix-meta: init service
Acked-by: Rutherther <rutherther@proton.me>
2024-04-02 19:16:45 +02:00
Janne Heß
fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Janne Heß
bc77c7a973 treewide: Mark Nix blocks in markdown as Nix
This should help us with highlighting and future formatting.
2024-03-28 09:28:12 +01:00
Maximilian Bosch
0d17fd9524
Merge pull request #292473 from networkException/fix-synapse-unix-socket-permissions
nixos/matrix-synapse: allow synapse to write to directories of unix socket paths
2024-03-15 18:53:04 +00:00
networkException
f0097cf1d9
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.
2024-03-08 23:16:05 +01:00
networkException
10fc05bfc1
nixos/matrix-synapse: allow synapse to write to directories of unix socket paths
this patch takes the path of all unix socket listeners and appends their
respective parent directories to the ReadWritePaths allow list for the
matrix-synapse systemd service.

previously configuring a unix socket in a directory not writable by
synapse would fail.
2024-03-01 02:36:29 +01:00
networkException
644eac31e6
nixos/matrix-sliding-sync: document unix socket support in SYNCV3_BINDADDR 2024-02-29 11:03:01 +01:00
Martin Weinelt
91d9c159da
nixos/matrix-synapse: fix recursive filtering of null values
Using `filterAttrsRecursive` is not sufficient to account for a nested
attribute set with list values, like used for listeners.
2024-02-09 16:05:05 +01:00
Martin Weinelt
143d266f0d
nixos/matrix-synapse: add UNIX domain socket listener support
Exposes two options, `path` and `mode`, to configure the location and
permissions on the socket file.

The `mode` needs to be specified as string in octal and will be converted
into a decimal integer, so it correctly passes through the YAML parser
and arrives at the `os.chmod` call in the Twisted codebase. What a fun
detour.

Adds an assertion, that either `path` or `bind_addresses` and `port` are
configured on every listener.

Migrates the default replication listener of the main instance to a UNIX
domain socket, because it is more efficient.

Introduces the `enableRegistrationScript` option, to gracefully disable
the user registration script, when the client listener listens on a UNIX
domain socket, which is something the script does not support.
2024-02-09 16:05:05 +01:00
Raito Bezarius
78bc60b8a4 nixos/hebbot: init
This is a NixOS module to support TWIM-style Matrix bots.
2024-01-25 18:27:33 +01:00
Jade Lovelace
6c5ab28fce nixos: fix a bunch of services missing dep on network-online.target
This was done by generating a truly hilarious configuration:

rg 'services\.[^.]+\.enable\t' opts-tags | cut -f1 > allonconfig.nix

The following were not tested due to other evaluation errors. They
should probably be manually audited.
services.amule
services.castopod
services.ceph
services.chatgpt-retrieval-plugin
services.clamsmtp
services.clight
services.dante
services.dex
services.discourse
services.dwm-status
services.engelsystem
services.foundationdb
services.frigate
services.frp
services.grocy
services.guacamole-client
services.hedgedoc
services.home-assistant
services.honk
services.imaginary
services.jitsi-meet
services.kerberos_server
services.limesurvey
services.mastodon
services.mediawiki
services.mobilizon
services.moodle
services.mosquitto
services.nextcloud
services.nullmailer
services.patroni
services.pfix-srsd
services.pgpkeyserver-lite
services.postfixadmin
services.roundcube
services.schleuder
services.self-deploy
services.slskd
services.spacecookie
services.statsd
services.step-ca
services.sympa
services.tsmBackup
services.vdirsyncer
services.vikunja
services.yandex-disk
services.zabbixWeb
2024-01-19 00:11:34 -08:00
sinanmohd
e8e5c07ad0 nixos/matrix-sliding-sync: rename, init dendrite 2023-12-30 00:25:57 +05:30
Nick Cao
ee4176d325
nixos/matrix-synapse: update broken link to redis related docs 2023-12-13 18:02:47 -05:00
Nick Cao
3d7e5f4f26
nixos/matrix-synapse: replace references to matrix-org/synapse with element-hq/synapse 2023-12-13 17:50:37 -05:00