diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-02-14 20:35:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 20:35:01 +0000 |
commit | 177cfe33702b35e028e883e2c2c438acfe3f2844 (patch) | |
tree | 8b477c7e9995d6883044bf0f25e98314754864ea /nixos/modules/services/networking | |
parent | 303c9794362acec6ce0142b8bcf878202717c99c (diff) | |
parent | de74ffb8f86b2198ef361f776cfe81a1e7356acb (diff) | |
download | nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.tar nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.tar.gz nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.tar.bz2 nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.tar.lz nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.tar.xz nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.tar.zst nixlib-177cfe33702b35e028e883e2c2c438acfe3f2844.zip |
Merge pull request #34974 from dotlambda/prosody
nixos/prosody: add package option
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r-- | nixos/modules/services/networking/prosody.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/prosody.nix b/nixos/modules/services/networking/prosody.nix index f34d8e172b46..9d7e6d6018af 100644 --- a/nixos/modules/services/networking/prosody.nix +++ b/nixos/modules/services/networking/prosody.nix @@ -179,6 +179,19 @@ in 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; @@ -306,7 +319,7 @@ in User = "prosody"; Type = "forking"; PIDFile = "/var/lib/prosody/prosody.pid"; - ExecStart = "${pkgs.prosody}/bin/prosodyctl start"; + ExecStart = "${cfg.package}/bin/prosodyctl start"; }; }; |