Add binfmt emulation for all needed systems

This commit is contained in:
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