Skip to content

[Setup]: Matrix does not work on NixOS setup #4594

@sgiath

Description

@sgiath

What's Going Wrong?

I am using the NixOS setup and everything seems to be working well except the Matrix integration does not work. Here is my NixOS config https://github.com/sgiath/nixos-config/blob/master/modules/nixos/server/hermes.nix

I think there was similar issue on non-nixos setup that got fixed in this PR #3873 but this obviously does not work on NixOS. The package needs to be included during build but there is currently no way for me to do that.

Good solution could be something like extraPackages option but extraPythonPackages or something like that. Or just include those libraries automatically in every NixOS build.

One issue might be that it seem like matrix-nio is available only for Python 3.13 and 3.14 but it seems to me that Hermes is using 3.11 ?

Steps Taken

  1. Installed Hermes agent through NixOS
  2. Run journalctl -u hermes-agent.service

Installation Method

Other

Operating System

NixOS unstable

Python Version

No response

Hermes Version

v0.6.0

Output of hermes doctor

Full Error Output

Apr 02 12:01:59 vesta systemd[1]: Started Hermes Agent Gateway.
Apr 02 12:01:59 vesta hermes[507089]: WARNING gateway.platforms.matrix: Matrix: matrix-nio not installed. Run: pip install 'matrix-nio[e2e]'
Apr 02 12:01:59 vesta hermes[507089]: WARNING gateway.run: Matrix: matrix-nio not installed or credentials not set. Run: pip install 'matrix-nio[e2e]'
Apr 02 12:01:59 vesta hermes[507089]: WARNING gateway.run: No adapter available for matrix

What I've Already Tried

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions