Code change:
I see that the custom CPU scheduler, zen's main feature is disabled: This raises a question: does nixpkgs' zen actually differs from the default kernel or nixpkgs disables all the customizations by applying the same config as to the default kernel? Moreover, nixpkgs provides the -lqx variant with the same config but the main difference between -zen and -lqx variants is the config: liquorix provides a pre-defined config with its Debian/Arch packages and when I see lqx in the repos, I expect nixpkgs to use it as well as there's no source code difference. The -lqx variant seem to be poorly maintained in nixpkgs in general, it lags behind -zen variant (6.4.1 vs 6.3.11 in current nixos-unstable). Steps to reproduce the behavior: -zen should have its features enabled more or less, the -lqx variant MUST use (and probably be available only for x86_64). See the for example. Would be nice to have variants with different schedulers like the AUR package allows, preferably pre-built on Hydra (well, I don't have a powerful enough hardware to build kernels).
It might be a good idea to also have a xanmod variant built with .
I created a PR that should fix this: I took a look at the Arch config for -zen and it looks like it is basically the vanilla kernel with and some tweaks to the RCU/Preempt/tick. So this is what I did above. For the -lqx variation, I activated the PDS process scheduler, BBR2 and other tricks that seems to make Liquorix kernel (according to the site: ). This is not exactly true, the release of the -lqx variant generally lags between major kernel releases, so while -zen gets to X.Y.Z, -lqx will stay in X.Y-1.Z for some weeks (I imagine for stability purposes, but I am not familiar with upstream). This will be difficult, because we can't simply take its configuration as-is. If the current approach in the PR above is not acceptable, I would say it is better to just remove the -lqx from nixpkgs. We already don't seem to have that many users of the current variants considering you're the first person to note that we are compiling the packages without the customizations. So unless there is really a strong demand I would say let's not do so and just keep 2 variations of this kernel that should be enough for most users.
It's acceptable as a first step but why can't we?
I guess only the minority checks actually? I periodically see in Arch groups how people try -zen thinking they get all the features for better responsiveness but don't see a difference and don't even think about checking what scheduler they run actually.
It would be really difficult to use upstream configuration as-is. I mean, I don't think it is impossible, but I definitely don't want to be the person to do so. What I mean is mostly that I don't think most people care anyway. Even users of those custom kernels doesn't seems to care too much if they're actually using a custom scheduler it seems, considering again you're the first person to note this issue and this kernel is in nixpkgs for a long time already. So considering that nobody is that interested in the first place I think adding another variation of those kernels is too much. We definitely can do in the future if there is enough people that wants those though.
What I mean is they do care, it's just they don't know how to check. They see -zen and believe they get all the features out of the box.

Related discussion:
text: <del> { lib, fetchFromGitHub, buildLinux, ... } @ args: </del> <ins> { lib, stdenv, fetchFromGitHub, buildLinux, ... } @ args: </ins> let # comments with variant added for update script # ./update-zen.py zen zenVariant = { <del> version = "6.4.1"; #zen </del> <ins> version = "6.4.2"; #zen </ins> suffix = "zen1"; #zen <del> sha256 = "05a3dplzz6vy5gjz9yd1hz7n4xf3mlr2q112kf3yabg8k8izqnys"; #zen </del> <ins> sha256 = "1swd3y97w55wh9vl6k1bsrx6fqi6b6ssbw306h87nxn36xwzx8cd"; #zen </ins> isLqx = false; }; # ./update-zen.py lqx lqxVariant = { <del> version = "6.3.11"; #lqx suffix = "lqx2"; #lqx sha256 = "0hpzafw2zwy25ss4cwj6mm8pr1nnv680m8bfcal29f7gaxbm96k8"; #lqx </del> <ins> version = "6.4.2"; #lqx suffix = "lqx1"; #lqx sha256 = "14hr88lbwm2pz3knw6nxlahdk4pwwb4ya63mrd7zg7g1x2xhfb59"; #lqx </ins> isLqx = true; }; zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {