From 1118754b6f338f641c4338f344bde3636cd527d7 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 8 Jan 2026 17:09:39 +0100 Subject: [PATCH] nixos/apiserver: replace usage of lib.types.types by lib.types --- .../modules/services/cluster/kubernetes/apiserver.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/cluster/kubernetes/apiserver.nix b/nixos/modules/services/cluster/kubernetes/apiserver.nix index 3ab4dbeafdf5..55d0ab9b0044 100644 --- a/nixos/modules/services/cluster/kubernetes/apiserver.nix +++ b/nixos/modules/services/cluster/kubernetes/apiserver.nix @@ -49,7 +49,7 @@ in ]; ###### interface - options.services.kubernetes.apiserver = with lib.types; { + options.services.kubernetes.apiserver = let inherit (lib.types) nullOr str bool listOf enum attrs path separatedString attrsOf int; in { advertiseAddress = lib.mkOption { description = '' @@ -164,26 +164,26 @@ in servers = lib.mkOption { description = "List of etcd servers."; default = [ "http://127.0.0.1:2379" ]; - type = types.listOf types.str; + type = listOf str; }; keyFile = lib.mkOption { description = "Etcd key file."; default = null; - type = types.nullOr types.path; + type = nullOr path; }; certFile = lib.mkOption { description = "Etcd cert file."; default = null; - type = types.nullOr types.path; + type = nullOr path; }; caFile = lib.mkOption { description = "Etcd ca file."; default = top.caFile; defaultText = lib.literalExpression "config.${otop.caFile}"; - type = types.nullOr types.path; + type = nullOr path; }; };