This commit is contained in:
2026-08-22 13:36:53 +01:00
parent b072564a6c
commit 049ccd8d29
5 changed files with 137 additions and 93 deletions
+51 -4
View File
@@ -6,7 +6,8 @@
}:
{
flake-file.inputs = {
x1e-kernel.url = "git+https://git.scug.io/nikkuss/x1e-nixos.git";
x1e-kernel.url = "git+ssh://git@git.scug.io:/nikkuss/x1e-staging.git?ref=staging";
x1e-kernel.inputs.nixpkgs.follows = "nixpkgs";
};
modules.surface-patches = {
nixos =
@@ -16,9 +17,55 @@
x1e-kernel.nixosModules.default
];
x1e.model = "15"; # "13" (default) or "15" — selects the correct DTB
x1e.cpuParking = false; # loads cpu_parking at boot
x1e.ecReboot = true; # loads ec_reboot at boot, exposes /sys/kernel/ec_reboot/reboot
# x1e.model = "15"; # "13" (default) or "15" — selects the correct DTB
# x1e.cpuParking = false; # loads cpu_parking at boot
# x1e.ecReboot = true; # loads ec_reboot at boot, exposes /sys/kernel/ec_reboot/reboot
x1e = {
model = "15";
cpuParking = false;
ecReboot = true;
el2 = {
debugTools = false;
enable = false;
};
iso = {
enable = true;
modules = [ ];
};
msm = {
extraPatches = [ ];
};
pmSdamTrace = {
enable = true;
};
psr = {
enable = false;
};
ramoops = {
enable = false;
};
spiHid = {
drivers = [ "legacy" ];
legacy = {
enable = true;
};
v4 = {
enable = false;
};
};
ssamPmNotifier = {
enable = false;
};
ssamRequestTimeout = {
enable = true;
};
touchscreen = {
enable = false;
};
video = {
enable = false;
};
};
# Prevent reboot hang - qcom_smd_qrtr workers stuck in D-state
systemd.settings.Manager.DefaultTimeoutStopSec = "15s";