nixos/plantuml-server: remove deprecated allowPlantumlInclude option

See https://github.com/plantuml/plantuml-server/pull/301
This commit is contained in:
Anthony Roussel 2023-11-15 00:34:14 +01:00
parent deae39af43
commit 8c7c1e7a30
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -8,6 +8,7 @@ let
mkIf
mkOption
mkPackageOptionMD
mkRemovedOptionModule
types
;
@ -16,6 +17,10 @@ let
in
{
imports = [
(mkRemovedOptionModule [ "services" "plantuml-server" "allowPlantumlInclude" ] "This option has been removed from PlantUML.")
];
options = {
services.plantuml-server = {
enable = mkEnableOption (mdDoc "PlantUML server");
@ -86,12 +91,6 @@ in
default = null;
description = mdDoc "When calling the proxy endpoint, the value of HTTP_AUTHORIZATION will be used to set the HTTP Authorization header.";
};
allowPlantumlInclude = mkOption {
type = types.bool;
default = false;
description = mdDoc "Enables !include processing which can read files from the server into diagrams. Files are read relative to the current working directory.";
};
};
};
@ -106,7 +105,6 @@ in
GRAPHVIZ_DOT = "${cfg.graphvizPackage}/bin/dot";
PLANTUML_STATS = if cfg.plantumlStats then "on" else "off";
HTTP_AUTHORIZATION = cfg.httpAuthorization;
ALLOW_PLANTUML_INCLUDE = if cfg.allowPlantumlInclude then "true" else "false";
};
script = ''
${cfg.packages.jdk}/bin/java \