remove dead binfmt code

This commit is contained in:
Colin 2024-03-10 01:05:33 +00:00
parent df33576090
commit ce8c4a4f6f
3 changed files with 0 additions and 17 deletions

View File

@ -79,11 +79,6 @@
HandleLidSwitch=lock
'';
# some packages build only if binfmt *isn't* present
nix.settings.system-features = lib.mkIf (config.boot.binfmt.emulatedSystems == []) [
"no-binfmt"
];
# services.snapper.configs = {
# root = {
# subvolume = "/";

View File

@ -91,7 +91,6 @@ in
speedFactor = 2;
supportedFeatures = [
# "big-parallel" # it can't reliably build webkitgtk
"no-binfmt"
];
mandatoryFeatures = [ ];
sshUser = "nixremote";

View File

@ -11,10 +11,6 @@ in
type = types.bool;
default = false;
};
emulation = mkOption {
type = types.bool;
default = false;
};
ccache = mkOption {
type = types.bool;
default = false;
@ -37,13 +33,6 @@ in
nix.settings.system-features = [ "big-parallel" ];
# enable cross compilation
# TODO: do this via stdenv injection, linking into /run/binfmt the stuff in <nixpkgs:nixos/modules/system/boot/binfmt.nix>
boot.binfmt.emulatedSystems = lib.optionals cfg.emulation [
"aarch64-linux"
# "aarch64-darwin" # not supported
# "x86_64-darwin" # not supported
];
# corresponds to env var: NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
# nixpkgs.config.allowUnsupportedSystem = true;
})