Add binfmt emulation for all needed systems
This commit is contained in:
parent
2d74dac8c0
commit
3517120888
13
modules/binfmt.nix
Normal file
13
modules/binfmt.nix
Normal 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"
|
||||||
|
];
|
||||||
|
}
|
|
@ -35,6 +35,7 @@ in
|
||||||
# configuration options
|
# configuration options
|
||||||
imports = [
|
imports = [
|
||||||
../pkgs/modules.nix
|
../pkgs/modules.nix
|
||||||
|
./binfmt.nix
|
||||||
./cups.nix
|
./cups.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
|
|
Loading…
Reference in a new issue