diff --git a/machines/fuuko/services/matrix/mautrix-whatsapp.nix b/machines/fuuko/services/matrix/mautrix-whatsapp.nix index 2df32f7..d8c0e13 100644 --- a/machines/fuuko/services/matrix/mautrix-whatsapp.nix +++ b/machines/fuuko/services/matrix/mautrix-whatsapp.nix @@ -1,6 +1,15 @@ # somewhat adapted from https://github.com/NixOS/nixpkgs/pull/59211 { config, lib, pkgs, ... }: let + nixpkgsMa27 = import + (pkgs.fetchFromGitHub { + owner = "Ma27"; + repo = "nixpkgs"; + rev = "5c7156faf1c766166d663a68e666678992ca2b2a"; + sha256 = "0jj9slwrpzxm88cqz7qy2v92828wsiqhrr32alix5mq7xhfyblg0"; + }) + { inherit (pkgs) system; }; + synapseCfg = config.services.matrix-synapse; in let @@ -83,7 +92,7 @@ in serviceConfig = { DynamicUser = true; StateDirectory = "mautrix-whatsapp"; - ExecStart = "${pkgs.mautrix-whatsapp}/bin/mautrix-whatsapp -c ${generatedConfig}/config.yaml"; + ExecStart = "${nixpkgsMa27.mautrix-whatsapp}/bin/mautrix-whatsapp -c ${generatedConfig}/config.yaml"; Restart = "on-failure"; }; };