lib/types: add descriptionClass for path

This commit is contained in:
Naïm Favier 2022-11-08 13:31:29 +01:00 committed by GitHub
parent bc5ad97078
commit 025f32f705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -478,6 +478,7 @@ rec {
path = mkOptionType {
name = "path";
descriptionClass = "noun";
check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
merge = mergeEqualOption;
};