From e7cf87f304bddb2216c8007601b145d63bcb2af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=BA=E0=B8=95=E0=B8=B1?= =?UTF-8?q?=E0=B8=A5?= Date: Thu, 20 Feb 2025 16:00:03 +0700 Subject: [PATCH] nixos/h2o: redo identity type to just list --- .../web-servers/h2o/vhost-options.nix | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/nixos/modules/services/web-servers/h2o/vhost-options.nix b/nixos/modules/services/web-servers/h2o/vhost-options.nix index 26abf8eb4f6a..3ca9ac16267d 100644 --- a/nixos/modules/services/web-servers/h2o/vhost-options.nix +++ b/nixos/modules/services/web-servers/h2o/vhost-options.nix @@ -82,7 +82,7 @@ in ''; }; identity = mkOption { - type = types.nonEmptyListOf ( + type = types.listOf ( types.submodule { options = { key-file = mkOption { @@ -104,18 +104,16 @@ in literalExpression # nix '' - { - indentities = [ - { - key-file = "/path/to/rsa.key"; - certificate-file = "/path/to/rsa.crt"; - } - { - key-file = "/path/to/ecdsa.key"; - certificate-file = "/path/to/ecdsa.crt"; - } - ]; - } + [ + { + key-file = "/path/to/rsa.key"; + certificate-file = "/path/to/rsa.crt"; + } + { + key-file = "/path/to/ecdsa.key"; + certificate-file = "/path/to/ecdsa.crt"; + } + ] ''; }; extraSettings = mkOption {