remove dead binfmt code
This commit is contained in:
parent
df33576090
commit
ce8c4a4f6f
|
@ -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 = "/";
|
||||
|
|
|
@ -91,7 +91,6 @@ in
|
|||
speedFactor = 2;
|
||||
supportedFeatures = [
|
||||
# "big-parallel" # it can't reliably build webkitgtk
|
||||
"no-binfmt"
|
||||
];
|
||||
mandatoryFeatures = [ ];
|
||||
sshUser = "nixremote";
|
||||
|
|
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue