diff --git a/TODO.md b/TODO.md index fc890c82..9a319da2 100644 --- a/TODO.md +++ b/TODO.md @@ -12,3 +12,5 @@ nixpkgs.crossSystem.system = "aarch64-linux"; }]; ``` +- + - apply for access to the community arm build box diff --git a/machines/moby/default.nix b/machines/moby/default.nix index a8fd8344..2ee11cc2 100644 --- a/machines/moby/default.nix +++ b/machines/moby/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, mobile-nixos, ... }: +{ config, pkgs, nixpkgs, lib, mobile-nixos, ... }: { imports = [ # (import "${mobile-nixos}/lib/configuration.nix" { @@ -57,7 +57,10 @@ # - and sun50i-a64-cpu-opp.dtsi # - no need to touch the allwinner-h6 stuff: that's the SBC pine product # - i think it's safe to ignore sun9i stuff, but i don't know what it is - boot.kernelPackages = pkgs.linuxPackages_5_18; + # boot.kernelPackages = pkgs.linuxPackages_5_18; + boot.kernelPackages = + let p = (import nixpkgs { localSystem = "x86_64-linux"; }); + in p.pkgsCross.aarch64-multiplatform.linuxPackages_5_18; boot.kernelPatches = let # use the last commit on the 5.18 branch (5.18.14) diff --git a/modules/hardware/x86_64.nix b/modules/hardware/x86_64.nix index 0632b1db..d668d750 100644 --- a/modules/hardware/x86_64.nix +++ b/modules/hardware/x86_64.nix @@ -12,6 +12,7 @@ with lib; # enable cross compilation boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + # nixpkgs.config.allowUnsupportedSystem = true; # nixpkgs.crossSystem.system = "aarch64-linux"; powerManagement.cpuFreqGovernor = "powersave";