From 9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c Mon Sep 17 00:00:00 2001 From: LuoChen Date: Fri, 8 Sep 2023 19:23:53 +0800 Subject: [PATCH] nixos/binfmt: improve type annotations --- nixos/modules/system/boot/binfmt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix index fb7afce4a580..8c9483f01c10 100644 --- a/nixos/modules/system/boot/binfmt.nix +++ b/nixos/modules/system/boot/binfmt.nix @@ -279,7 +279,7 @@ in { support your new systems. Warning: the builder can execute all emulated systems within the same build, which introduces impurities in the case of cross compilation. ''; - type = types.listOf types.str; + type = types.listOf (types.enum (builtins.attrNames magics)); }; }; };