summaryrefslogtreecommitdiffstats
path: root/systems/qi
diff options
context:
space:
mode:
Diffstat (limited to 'systems/qi')
-rw-r--r--systems/qi/base.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/systems/qi/base.nix b/systems/qi/base.nix
index dade96f1..f8962625 100644
--- a/systems/qi/base.nix
+++ b/systems/qi/base.nix
@@ -1,4 +1,4 @@
-{ config, inputs, lib, modulesPath, pkgs, ... }: {
+{ buildSystem, config, inputs, lib, modulesPath, pkgs, ... }: {
imports = [
# Minimize the build to produce a smaller closure
(modulesPath + "/profiles/minimal.nix")
@@ -11,6 +11,17 @@
krebs.shadow.overridesFile =
"${config.krebs.secret.directory}/shadow-overrides";
+ # Cross-compiled where the builder's system differs.
+ mobile.boot.stage-1.kernel.package = lib.mkForce (
+ (import pkgs.path {
+ localSystem = buildSystem;
+ crossSystem = pkgs.stdenv.hostPlatform.system;
+ inherit (pkgs) config overlays;
+ }).callPackage
+ (inputs.mobile-nixos + "/devices/families/sdm845-mainline/kernel")
+ { }
+ );
+
networking.networkmanager.enable = false;
networking.wireless = {
userControlled.enable = true;