Commit 12c6d79e authored by Someone Serge's avatar Someone Serge Committed by SomeoneSerge
Browse files

nixos/prosody: provide an escape hatch for overriding the logging configuration

parent dc1acf8d
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -716,6 +716,17 @@ in
        description = "Additional prosody configuration";
      };

      log = mkOption {
        type = types.lines;
        default = ''"*syslog"'';
        description = "Logging configuration. See [](https://prosody.im/doc/logging) for more details";
        example = ''
          {
            { min = "warn"; to = "*syslog"; };
          }
        '';
      };

    };
  };

@@ -764,7 +775,7 @@ in

      pidfile = "/run/prosody/prosody.pid"

      log = "*syslog"
      log = ${cfg.log}

      data_path = "${cfg.dataDir}"
      plugin_paths = {