Merge pull request #34974 from dotlambda/prosody

nixos/prosody: add package option

authored by

Frederik Rietdijk and committed by
GitHub
177cfe33 303c9794

+14 -1
+14 -1
nixos/modules/services/networking/prosody.nix
··· 179 description = "Whether to enable the prosody server"; 180 }; 181 182 allowRegistration = mkOption { 183 type = types.bool; 184 default = false; ··· 306 User = "prosody"; 307 Type = "forking"; 308 PIDFile = "/var/lib/prosody/prosody.pid"; 309 - ExecStart = "${pkgs.prosody}/bin/prosodyctl start"; 310 }; 311 }; 312
··· 179 description = "Whether to enable the prosody server"; 180 }; 181 182 + package = mkOption { 183 + type = types.package; 184 + description = "Prosody package to use"; 185 + default = pkgs.prosody; 186 + defaultText = "pkgs.prosody"; 187 + example = literalExample '' 188 + pkgs.prosody.override { 189 + withExtraLibs = [ pkgs.luaPackages.lpty ]; 190 + withCommunityModules = [ "auth_external" ]; 191 + }; 192 + ''; 193 + }; 194 + 195 allowRegistration = mkOption { 196 type = types.bool; 197 default = false; ··· 319 User = "prosody"; 320 Type = "forking"; 321 PIDFile = "/var/lib/prosody/prosody.pid"; 322 + ExecStart = "${cfg.package}/bin/prosodyctl start"; 323 }; 324 }; 325