Skip to content

Commit

Permalink
mautrix-discord: use package from nixpkgs
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Jan 3, 2024
1 parent 1fe20e2 commit 99f4ca1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
4 changes: 1 addition & 3 deletions nixos/modules/services/matrix/mautrix-discord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ with lib;
let
cfg = config.services.mautrix-discord;

mautrix-discord = pkgs.callPackage ../../../pkgs/mautrix-discord.nix { };

mautrixDiscordAppserviceConfig = {
id = "discord";
url = "http://${cfg.listenAddress}:${toString cfg.listenPort}";
Expand Down Expand Up @@ -203,7 +201,7 @@ in
serviceConfig = {
User = "mautrixdiscord";
Group = "matrix";
ExecStart = "${mautrix-discord}/bin/mautrix-discord --no-update";
ExecStart = "${pkgs.mautrix-discord}/bin/mautrix-discord --no-update";
WorkingDirectory = cfg.dataDir;
Restart = "on-failure";
SupplementaryGroups = [ "keys" ];
Expand Down
24 changes: 0 additions & 24 deletions nixos/pkgs/mautrix-discord.nix

This file was deleted.

0 comments on commit 99f4ca1

Please sign in to comment.