diff --git a/flake.nix b/flake.nix index 26a4ee9..b0859e7 100644 --- a/flake.nix +++ b/flake.nix @@ -110,6 +110,13 @@ nicer = super.callPackage ./pkgs/nicer.nix {}; gamja = super.callPackage ./pkgs/gamja.nix {}; }) + (_: _: { + crossArm64 = import nixpkgs { + system = "x86_64-linux"; + hostPlatform.config = "aarch64-linux"; + buildPlatform.config = "x86_64-linux"; + }; + }) ]; mkVM = system: diff --git a/shared/platform/orangepi5plus.nix b/shared/platform/orangepi5plus.nix index 61e84c4..3564c19 100644 --- a/shared/platform/orangepi5plus.nix +++ b/shared/platform/orangepi5plus.nix @@ -5,7 +5,7 @@ modulesPath, ... }: let - crossPkgs = pkgs.pkgsCross.aarch64-multiplatform; + crossPkgs = pkgs.crossArm64.pkgsCross.aarch64-multiplatform; in { boot = { kernelPackages = crossPkgs.linuxPackagesFor (crossPkgs.buildLinux rec {