Matrix: Difference between revisions

imported>Pacien
mautrix-telegram: update module merge status and add example config
imported>Pacien
add comments on time-sensitive imports
Line 94: Line 94:


==== mautrix-telegram ====
==== mautrix-telegram ====
Packaged as [https://nixos.org/nixos/packages.html?attr=mautrix-telegram mautrix-telegram] on current stable.
Module still only present on the unstable channel.


Example config:
Example config:
Line 102: Line 99:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
{
{
  # The module will be available in NixOS 20.09. For now, we need to import it from the unstable channel.
   imports = [
   imports = [
     <nixos-unstable/nixos/modules/services/misc/mautrix-telegram.nix>
     <nixos-unstable/nixos/modules/services/misc/mautrix-telegram.nix>
Line 156: Line 154:


==== matrix-appservice-discord ====
==== matrix-appservice-discord ====
Package and module still only present in unstable.


Example config:
Example config:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
let
{
   unstablePkgs = import <nixos-unstable> { };
   # The module will be available in NixOS 20.09. For now, we need to import it from the unstable channel.
 
in {
   imports = [
   imports = [
     <nixos-unstable/nixos/modules/services/misc/matrix-appservice-discord.nix>
     <nixos-unstable/nixos/modules/services/misc/matrix-appservice-discord.nix>
   ];
   ];


  # The package will be available in NixOS 20.09. For now, we need to import it from the unstable channel.
   nixpkgs.overlays = [(self: super: {
   nixpkgs.overlays = [(self: super: {
     inherit (unstablePkgs) matrix-appservice-discord;
     inherit (import <nixos-unstable> { }) matrix-appservice-discord;
   })];
   })];