remove dead binfmt code
This commit is contained in:
@@ -79,11 +79,6 @@
|
|||||||
HandleLidSwitch=lock
|
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 = {
|
# services.snapper.configs = {
|
||||||
# root = {
|
# root = {
|
||||||
# subvolume = "/";
|
# subvolume = "/";
|
||||||
|
@@ -91,7 +91,6 @@ in
|
|||||||
speedFactor = 2;
|
speedFactor = 2;
|
||||||
supportedFeatures = [
|
supportedFeatures = [
|
||||||
# "big-parallel" # it can't reliably build webkitgtk
|
# "big-parallel" # it can't reliably build webkitgtk
|
||||||
"no-binfmt"
|
|
||||||
];
|
];
|
||||||
mandatoryFeatures = [ ];
|
mandatoryFeatures = [ ];
|
||||||
sshUser = "nixremote";
|
sshUser = "nixremote";
|
||||||
|
@@ -11,10 +11,6 @@ in
|
|||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
emulation = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
ccache = mkOption {
|
ccache = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@@ -37,13 +33,6 @@ in
|
|||||||
|
|
||||||
nix.settings.system-features = [ "big-parallel" ];
|
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
|
# corresponds to env var: NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
|
||||||
# nixpkgs.config.allowUnsupportedSystem = true;
|
# nixpkgs.config.allowUnsupportedSystem = true;
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user