moby: enable modem-power

This commit is contained in:
2024-09-13 00:04:15 +00:00
parent b43ee23459
commit 441269fb2f
2 changed files with 11 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ in
usePmosConfig = true;
withNixpkgsConfig = true;
withFullConfig = false;
withModemPower = true;
});
# nixpkgs.hostPlatform.linux-kernel becomes stdenv.hostPlatform.linux-kernel

View File

@@ -10,6 +10,7 @@
usePmosConfig ? true,
withNixpkgsConfig ? true,
withFullConfig ? false,
withModemPower ? true,
#VVV nixpkgs calls `.override` on the kernel to configure additional things, but we don't care about those things
...
}@args:
@@ -378,6 +379,15 @@ linux_latest.override {
RAID6_PQ_BENCHMARK = no;
};
}
] ++ lib.optionals withModemPower [
{
name = "enable-megi-modem-power";
patch = null;
extraStructuredConfig = with lib.kernel; {
# enable /sys/class/modem-power, a thing specific to Megi's kernel/patches
MODEM_POWER = yes;
};
}
] ++ lib.optionals withNixpkgsConfig [
{
name = "nixpkgs-config";