# How to custom kernel config with module signature enabled?

**URL:** https://discourse.nixos.org/t/how-to-custom-kernel-config-with-module-signature-enabled/81050
**Category:** Help
**Created:** [November 8, 2026, 11:25am UTC](https://discourse.nixos.org/t/how-to-custom-kernel-config-with-module-signature-enabled/81050 "2026-11-08T11:25:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hack4code](https://discourse.nixos.org/user_avatar/discourse.nixos.org/hack4code/32/33484_2.png) [@hack4code](https://discourse.nixos.org/u/hack4code)
#### Post date: [November 8, 2026, 11:25am UTC](https://discourse.nixos.org/t/how-to-custom-kernel-config-with-module-signature-enabled/81050/1 "2026-11-08T11:25:05Z")

</div>

Last week my system failed to boot after nixpkgs-unstable updating, I finally fixed it by disable module signature verification in the kernel config. My question is how to config kernel if I want to enable modue signature verification. By now, if I enable it, system can’t boot, it hanging after systemd-boot menu with no message

nixos config: [https://github.com/hack4code/nixos/blob/3af187a9ca9433fc0215ff7b88e3bda47dd00c6a/modules/boot.nix](https://github.com/hack4code/nixos/blob/3af187a9ca9433fc0215ff7b88e3bda47dd00c6a/modules/boot.nix)

kernel config: [https://github.com/hack4code/nixos/blob/3af187a9ca9433fc0215ff7b88e3bda47dd00c6a/modules/kernel/config](https://github.com/hack4code/nixos/blob/3af187a9ca9433fc0215ff7b88e3bda47dd00c6a/modules/kernel/config)
