Merge pull request #34974 from dotlambda/prosody

nixos/prosody: add package option

Changed files
+14 -1
nixos
modules
services
networking
+14 -1
nixos/modules/services/networking/prosody.nix
···
description = "Whether to enable the prosody server";
};
allowRegistration = mkOption {
type = types.bool;
default = false;
···
User = "prosody";
Type = "forking";
PIDFile = "/var/lib/prosody/prosody.pid";
-
ExecStart = "${pkgs.prosody}/bin/prosodyctl start";
};
};
···
description = "Whether to enable the prosody server";
};
+
package = mkOption {
+
type = types.package;
+
description = "Prosody package to use";
+
default = pkgs.prosody;
+
defaultText = "pkgs.prosody";
+
example = literalExample ''
+
pkgs.prosody.override {
+
withExtraLibs = [ pkgs.luaPackages.lpty ];
+
withCommunityModules = [ "auth_external" ];
+
};
+
'';
+
};
+
allowRegistration = mkOption {
type = types.bool;
default = false;
···
User = "prosody";
Type = "forking";
PIDFile = "/var/lib/prosody/prosody.pid";
+
ExecStart = "${cfg.package}/bin/prosodyctl start";
};
};