about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorLuoChen <luochen1990@gmail.com>2023-09-08 19:23:53 +0800
committerLuoChen <luochen1990@gmail.com>2023-09-08 19:40:42 +0800
commit9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c (patch)
tree40b069d7e780a8aa6afda36c2e8f089524a1d685 /nixos/modules/system
parent2c9e9de1fe101944a20a5c1ac4e7a9ad8c8f8b6f (diff)
downloadnixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.tar
nixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.tar.gz
nixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.tar.bz2
nixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.tar.lz
nixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.tar.xz
nixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.tar.zst
nixlib-9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c.zip
nixos/binfmt: improve type annotations
Diffstat (limited to 'nixos/modules/system')
-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 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));
       };
     };
   };