git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/prosody: add authentication option (fixes #53134) (#61051)

nixos/prosody: add authentication option (fixes #53134)

commit953c81d1a490f0837a684028f56162f5ec6e1ee0 authorSilvan Mosberger <infinisil@icloud.com> dateSat 25 May 2019, 00:17 (7 years ago) parent785204f387d85b
1 file changed+8
nixos/modules/services/networking/prosody.nix+8
nixos/modules/services/networking/prosody.nix+8
@@ -422,6 +422,13 @@ in
422422 description = "List of administrators of the current host";
423423 };
424424
425+ authentication = mkOption {
426+ type = types.enum [ "internal_plain" "internal_hashed" "cyrus" "anonymous" ];
427+ default = "internal_hashed";
428+ example = "internal_plain";
429+ description = "Authentication mechanism used for logins.";
430+ };
431+
425432 extraConfig = mkOption {
426433 type = types.lines;
427434 default = "";
@@ -477,6 +484,7 @@ in
477484
478485 s2s_secure_domains = ${toLua cfg.s2sSecureDomains}
479486
487+ authentication = ${toLua cfg.authentication}
480488
481489 ${ cfg.extraConfig }
482490