moby: enable modem-power
This commit is contained in:
@@ -42,6 +42,7 @@ in
|
|||||||
usePmosConfig = true;
|
usePmosConfig = true;
|
||||||
withNixpkgsConfig = true;
|
withNixpkgsConfig = true;
|
||||||
withFullConfig = false;
|
withFullConfig = false;
|
||||||
|
withModemPower = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
# nixpkgs.hostPlatform.linux-kernel becomes stdenv.hostPlatform.linux-kernel
|
# nixpkgs.hostPlatform.linux-kernel becomes stdenv.hostPlatform.linux-kernel
|
||||||
|
@@ -10,6 +10,7 @@
|
|||||||
usePmosConfig ? true,
|
usePmosConfig ? true,
|
||||||
withNixpkgsConfig ? true,
|
withNixpkgsConfig ? true,
|
||||||
withFullConfig ? false,
|
withFullConfig ? false,
|
||||||
|
withModemPower ? true,
|
||||||
#VVV nixpkgs calls `.override` on the kernel to configure additional things, but we don't care about those things
|
#VVV nixpkgs calls `.override` on the kernel to configure additional things, but we don't care about those things
|
||||||
...
|
...
|
||||||
}@args:
|
}@args:
|
||||||
@@ -378,6 +379,15 @@ linux_latest.override {
|
|||||||
RAID6_PQ_BENCHMARK = no;
|
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 [
|
] ++ lib.optionals withNixpkgsConfig [
|
||||||
{
|
{
|
||||||
name = "nixpkgs-config";
|
name = "nixpkgs-config";
|
||||||
|
Reference in New Issue
Block a user