nixos/h2o: redo identity type to just list

This commit is contained in:
โทสฺตัล
2025-02-24 15:06:33 +07:00
parent d62e8c41bf
commit e7cf87f304
@@ -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 {