diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-08-30 23:18:13 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-08-30 23:18:13 -0500 |
commit | 792f51f82e5b6ca5a8ff0d9d41dd3649ec92e8a0 (patch) | |
tree | aca0bff40fbc1d797c8d76e448e879dfddd15de1 /hosts/carrot/default.nix | |
parent | fc14b9be5f3f17facc5c7825c7b29d020f11157e (diff) | |
download | nixos-config-792f51f82e5b6ca5a8ff0d9d41dd3649ec92e8a0.tar.gz nixos-config-792f51f82e5b6ca5a8ff0d9d41dd3649ec92e8a0.zip |
hosts/carrot: Make kernel package be cross-compiled from x86_64
Diffstat (limited to 'hosts/carrot/default.nix')
-rw-r--r-- | hosts/carrot/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hosts/carrot/default.nix b/hosts/carrot/default.nix index 813412f..57be3d6 100644 --- a/hosts/carrot/default.nix +++ b/hosts/carrot/default.nix @@ -1,6 +1,13 @@ { inputs, lib, pkgs, ... }: -let inherit (inputs) mobile-nixos; +let + inherit (inputs) + mobile-nixos nixpkgs; + pkgsCross = import "${inputs.nixpkgs}" { + localSystem = "x86_64-linux"; + crossSystem = "aarch64-linux"; + overlays = pkgs.overlays; + }; in { imports = [ @@ -29,6 +36,9 @@ in www.browser = true; }; + mobile.boot.stage-1.kernel.package = lib.mkForce + (pkgsCross.callPackage "${mobile-nixos}/devices/pine64-pinephone/kernel" { }); + users.root.initialPassword = "00000000" # Ensures any rndis config from stage-1 is not clobbered by NetworkManager |