main
1{den, ...}: {
2 den.aspects.dev.includes = [den.aspects.dev.binfmt];
3 den.aspects.dev.binfmt = {
4 nixos = {
5 host,
6 lib,
7 ...
8 }: let
9 currentHostSystem = host.system;
10 allHostSystems = lib.filter (sys: lib.hasSuffix "linux" sys) (lib.attrNames den.hosts);
11 emulatedSystems = lib.filter (sys: sys != currentHostSystem) allHostSystems;
12 in {
13 boot.binfmt = {
14 emulatedSystems = emulatedSystems;
15 preferStaticEmulators = true;
16 };
17 };
18 };
19}