added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
25
nyx/modules/core/common/system/emulation/default.nix
Normal file
25
nyx/modules/core/common/system/emulation/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue