Merge pull request #34974 from dotlambda/prosody
nixos/prosody: add package option
This commit is contained in:
commit
177cfe3370
@ -179,6 +179,19 @@ in
|
|||||||
description = "Whether to enable the prosody server";
|
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 {
|
allowRegistration = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -306,7 +319,7 @@ in
|
|||||||
User = "prosody";
|
User = "prosody";
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
PIDFile = "/var/lib/prosody/prosody.pid";
|
PIDFile = "/var/lib/prosody/prosody.pid";
|
||||||
ExecStart = "${pkgs.prosody}/bin/prosodyctl start";
|
ExecStart = "${cfg.package}/bin/prosodyctl start";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user