nixphone stuff

This commit is contained in:
Henry Hiles 2026-11-09 20:36:07 -05:00
commit f0fca1bad4
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -1,19 +1,21 @@
{ inputs, lib, ... }:
{
inputs,
lib,
config,
crossPkgs,
...
}:
{
imports = [
(
_:
import inputs.nixphone.nixosModules.sdm845-oneplus-fajita {
inherit lib config;
pkgs = crossPkgs;
inputs = inputs.sdm845.inputs;
}
)
imports = [ inputs.nixphone.nixosModules.sdm845-oneplus-fajita ];
quadphone.crossPackages = [
"nix-direnv"
];
# nixphone loads pmi8998_haptics in the initrd, but the kernel config doesn't build it
# TODO: upstream to nixphone
boot.kernelPatches = [
{
name = "pmi8998-haptics";
patch = null;
structuredExtraConfig.INPUT_QCOM_PMI8998_HAPTICS = lib.kernel.module;
}
];
# TODO: flutter apps don't cross compile, and the flake's package isn't cached
programs.nexus.enable = lib.mkForce false;
}