added stuff

This commit is contained in:
Charlie Root 2024-04-09 23:11:33 +02:00
commit 9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
sys = config.modules.system;
in {
config = mkIf sys.emulation.enable {
nix.settings.extra-sandbox-paths = ["/run/binfmt" "${pkgs.qemu}"];
boot.binfmt = {
emulatedSystems = sys.emulation.systems;
registrations = {
# aarch64 interpreter
aarch64-linux.interpreter = "${pkgs.qemu}/bin/qemu-aarch64";
# i686 interpreter
i686-linux.interpreter = "${pkgs.qemu}/bin/qemu-i686";
};
};
};
}