mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 12:18:46 +08:00
13 lines
363 B
Nix
13 lines
363 B
Nix
inputs:
|
|
{
|
|
options.nixos.system.binfmt = let inherit (inputs.lib) mkOption types; in
|
|
{
|
|
enable = mkOption { type = types.bool; default = true; };
|
|
};
|
|
config = inputs.lib.mkIf inputs.config.nixos.system.binfmt.enable
|
|
{
|
|
programs.java = { enable = true; binfmt = true; };
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" "x86_64-windows" ];
|
|
};
|
|
}
|