From 29efb2c438ba2dd04d545c67a22d1e64576de9f4 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 28 Dec 2022 23:42:27 +0100 Subject: [PATCH] lib.types.path: Do not allow lists of strings --- lib/types.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/types.nix b/lib/types.nix index b5ac0369c539..deeff36b4a4a 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -54,7 +54,6 @@ let concatStringsSep escapeNixString hasInfix - isMoreCoercibleToString isSimpleCoercibleToString ; inherit (lib.trivial) @@ -480,7 +479,7 @@ rec { path = mkOptionType { name = "path"; descriptionClass = "noun"; - check = x: isMoreCoercibleToString x && builtins.substring 0 1 (toString x) == "/"; + check = x: isSimpleCoercibleToString x && builtins.substring 0 1 (toString x) == "/"; merge = mergeEqualOption; };