Add binfmt emulation for all needed systems

binfmt
Simon Bruder 2021-01-29 10:35:11 +01:00
parent 2d74dac8c0
commit 3517120888
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 14 additions and 0 deletions

13
modules/binfmt.nix Normal file
View File

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
lib.mkIf config.sbruder.full {
# Emulates all configured systems except the actual system
boot.binfmt.emulatedSystems = lib.filter
(system: system != pkgs.stdenv.system)
[
"aarch64-linux"
"armv7l-linux"
"i686-linux"
"x86_64-linux"
];
}

View File

@ -35,6 +35,7 @@ in
# configuration options
imports = [
../pkgs/modules.nix
./binfmt.nix
./cups.nix
./docker.nix
./fonts.nix