diff --git a/backend/converted.nix b/backend/converted.nix index f8b3710..9432f5c 100644 --- a/backend/converted.nix +++ b/backend/converted.nix @@ -1,18 +1,20 @@ -{ mkDerivation -, aeson -, base -, bytestring -, classy-prelude -, http-types -, lib -, lifted-base -, mtl -, text -, uuid -, wai -, wai-extra -, warp -, websockets +{ + mkDerivation, + aeson, + base, + bytestring, + classy-prelude, + http-types, + lib, + lifted-base, + mtl, + text, + uuid, + wai, + wai-extra, + warp, + websockets, + optparse-applicative, }: mkDerivation { pname = "jitsi-rooms"; @@ -34,6 +36,7 @@ mkDerivation { wai-extra warp websockets + optparse-applicative ]; executableHaskellDepends = [ aeson @@ -49,6 +52,7 @@ mkDerivation { wai-extra warp websockets + optparse-applicative ]; homepage = "https://github.com/githubuser/jitsi-rooms#readme"; license = lib.licenses.bsd3; diff --git a/nixos.nix b/nixos.nix index 4bb062f..df47e4c 100644 --- a/nixos.nix +++ b/nixos.nix @@ -13,6 +13,7 @@ let backend = (pkgs.callPackage ./backend/default.nix { }); frontend = (pkgs.callPackage ./frontend/default.nix { }); prodsodyPackage = (pkgs.callPackage ./prodsody/default.nix { }); + notifyScript = "/run/current-system/sw/bin/send-signal-jitsi-notify"; in { options.services.jitsi-rooms = { @@ -31,7 +32,7 @@ in after = [ "network.target" ]; serviceConfig = { - ExecStart = "${backend}/bin/jitsi-rooms-exe"; + ExecStart = "${backend}/bin/jitsi-rooms-exe -n ${notifyScript}"; DynamicUser = true; User = "jitsi-rooms-backend"; };