Avoid usage of lib.types.anything

This commit is contained in:
SebastianStork 2026-03-13 17:25:12 +01:00
parent 7557252b22
commit e69e9c8491
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
5 changed files with 6 additions and 6 deletions

View file

@ -16,7 +16,7 @@ in
};
nodes = lib.mkOption {
type = lib.types.anything;
type = lib.types.listOf lib.types.attrs;
default =
allHosts
|> lib.attrValues
@ -31,7 +31,7 @@ in
readOnly = true;
};
peers = lib.mkOption {
type = lib.types.anything;
type = lib.types.listOf lib.types.attrs;
default = cfg.nodes |> lib.filter (node: node.hostName != cfg.hostName);
readOnly = true;
};