From bd0d34d99a31937ee90197d16a4814cddfc0826e Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Thu, 15 Apr 2021 09:28:52 +0200 Subject: [PATCH] nixos: support arbitrary child binaries Allow child binaries to be ERIS URNs or otherwise arbitrary strings. --- nixos-modules/lib/children.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos-modules/lib/children.nix b/nixos-modules/lib/children.nix index 10f1c13..9f03f60 100644 --- a/nixos-modules/lib/children.nix +++ b/nixos-modules/lib/children.nix @@ -16,9 +16,7 @@ description = "Program binary for this child. Must be an ERIS URN."; default = null; - type = types.nullOr (types.str // { - check = lib.strings.hasPrefix "urn:erisx2:"; - }); + type = types.nullOr types.str; example = "urn:erisx2:AEAU4KT7AGJLA5BHPWFZ7HX2OVVNVFGDM2SIS726OPZBGXDED64QIDPHN2M5P5HIMOG3YDSWBGDPNUMZKCG4CRVU4DI5BOS5IJRFCSLQQY"; };