My NixOS configuration and dotfiles
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: add PREEMPT_LAZY = mkForce no to resolve choice conflict with PREEMPT

The common-config.nix sets PREEMPT_LAZY = yes for kernels >= 6.18
(which includes 7.1). Both PREEMPT and PREEMPT_LAZY are in the same
preemption model choice group in kernel Kconfig. When generate-config.pl
sees both options with 'y' in the answer file, it dies with
'conflicting answers!' (the "Error in reading or end of file" failure).

Explicitly disabling PREEMPT_LAZY ensures only PREEMPT (full preemption)
is selected, avoiding the choice conflict. Also removes CC_IS_CLANG and
LTO_CLANG_FULL which can't be forced via kernel config with GCC build.

+1
+1
hosts/asus/system.nix
··· 152 152 X86_NATIVE_CPU = yes; 153 153 X86_INTEL_PSTATE = yes; 154 154 PREEMPT = lib.mkForce yes; 155 + PREEMPT_LAZY = lib.mkForce no; 155 156 PREEMPT_DYNAMIC = yes; 156 157 CPU_IDLE = yes; 157 158 INTEL_IDLE = yes;