Commit graph

202 commits

Author SHA1 Message Date
Martin Weinelt 51d11cae99
nixos/matrix-synapse: enable jemalloc by default
The official docker image has been defaulting to the jemalloc memory
allocator for years.
2024-12-30 17:55:33 +01:00
Martin Weinelt e6f67cc259
nixos/matrix-synapse: configure PYTHONMALLOC when using jemalloc
Per a synapse FAQ entry[1] this should be set in combination with\
jemalloc to make sure that jemalloc can accurately calculate memory
usage.

[1] https://github.com/element-hq/synapse/blob/develop/docs/usage/administration/admin_faq.md#help-synapse-is-slow-and-eats-all-my-ramcpu
2024-12-30 17:29:02 +01:00
euxane 1dabc1f584 maintainers: rename pacien -> euxane, update details 2024-12-21 21:20:22 +01:00
Niklas Korz 5161dce855 nixos/conduwuit: init 2024-12-14 12:06:03 +01:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Nick Cao caeec1f97d
nixos/mautrix-telegram: use ffmpeg-headless instead of ffmpeg-full (#358225) 2024-11-27 09:09:54 -05:00
Maximilian Bosch 705ae9b92e
mautrix-signal: 0.7.2 -> 0.7.3
ChangeLog: https://github.com/mautrix/signal/releases/tag/v0.7.3
2024-11-24 19:44:49 +01:00
Nick Cao 5aa904b61e
nixos/mautrix-telegram: use ffmpeg-headless instead of ffmpeg-full
ffmpeg-full was used for webp/webm support, but now they are
also enabled in ffmpeg-headless
2024-11-22 13:22:32 -05:00
jopejoe1 eeb4b70419
nixos/hebbot: Fix systemd service (#354098) 2024-11-09 11:38:13 +01:00
Jenny eb95c0d624
nixos/conduit: wait for network-online.target (#353634) 2024-11-07 08:57:14 +01:00
a-kenji 16970e3252 nixos/hebbot: Fix systemd service 2024-11-07 00:02:29 +01:00
Joel Koen 0d04728ee3
nixos/conduit: wait for network-online.target 2024-11-04 22:08:03 +10:00
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