about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJanne Heß <dasJ@users.noreply.github.com>2023-09-09 17:24:53 +0200
committerGitHub <noreply@github.com>2023-09-09 17:24:53 +0200
commita71936c70fbd418e09e8afac4ad0bf98ada865a8 (patch)
tree5fbe7ac9d68207f58524ab958a0c6d605ab40de3 /nixos
parent839cdaa190c7fbb6234ea6f6e5e0ce6ac35c8543 (diff)
parent9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c (diff)
Merge pull request #254027 from luochen1990/feature-better-binfmt
nixos/binfmt: improve type annotations
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/binfmt.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix
index fb7afce4a5808..8c9483f01c102 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));
       };
     };
   };