Best way to compile a kernel with custom options in Nixos

Fixing HP Victus 15 internal microphone drivers by compiling patched auto-updating kernel with Nixos

Is this asking for support with a problem or trying to inform us about a solution to a problem?

In either case, more details, like the actual problem statement would be helpful.

Also in the former case your configuration, and the proposed solution in the latter case.

i need an solution for this problem

with this change i need to patch my kernel

thanks for an reply for my issue

You can look up how Kernel patches are maintained for the Microsoft Surface devices: nixos-hardware/microsoft/surface/common/kernel at master · NixOS/nixos-hardware · GitHub

exlpain i am new to this kind of stuffs

Please red through this page, which has all the necessary information:
https://wiki.nixos.org/wiki/Linux_kernel

Towards the end you will find explanations on patching kernel modules, which is probably what you need, based on the limited information you have given.

If you encounter problems, you can post you nix code here and people will help you.