nixos/nifi: use types.port

This commit is contained in:
h7x4
2025-09-22 16:48:08 +02:00
parent a0f9e8c8b9
commit c2b14be993
+2 -2
View File
@@ -69,7 +69,7 @@ in
};
listenPort = lib.mkOption {
type = lib.types.int;
type = lib.types.port;
default = if cfg.enableHTTPS then 8443 else 8080;
defaultText = lib.literalExpression ''
if config.${opt.enableHTTPS}
@@ -91,7 +91,7 @@ in
};
proxyPort = lib.mkOption {
type = lib.types.nullOr lib.types.int;
type = lib.types.nullOr lib.types.port;
default = if cfg.enableHTTPS then 8443 else null;
defaultText = lib.literalExpression ''
if config.${opt.enableHTTPS}