From ad853c13680ac6c28ebe9a13a5b2973eb7573221 Mon Sep 17 00:00:00 2001 From: Danila Danko Date: Mon, 29 Jan 2024 22:29:44 +0300 Subject: [PATCH] types.nix: fix nonEmptyListOf --- lib/types.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/types.nix b/lib/types.nix index cea63c598321..7b2062f13059 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -557,6 +557,7 @@ rec { in list // { description = "non-empty ${optionDescriptionPhrase (class: class == "noun") list}"; emptyValue = { }; # no .value attr, meaning unset + substSubModules = m: nonEmptyListOf (elemType.substSubModules m); }; attrsOf = elemType: mkOptionType rec {