nixos/luksroot: Remove explicit cryptd from boot.initrd.availableKernelModules

crytpd is a helper module which *may* be compiled based on architecture
and/or crypto algorithms which are supported (built) in the kernel.
Since not all kernels need cryptd to do LUKS-based encryption, move
cryptd to cryptoModules which can be configured based on the built
kernel.
This commit is contained in:
Elliot Berman
2025-12-07 14:02:55 -08:00
parent 87120188ec
commit e7dca1c3c6
+1 -1
View File
@@ -647,6 +647,7 @@ in
"sha512"
"af_alg"
"algif_skcipher"
"cryptd"
];
description = ''
A list of cryptographic kernel modules needed to decrypt the root device(s).
@@ -1135,7 +1136,6 @@ in
boot.initrd.availableKernelModules = [
"dm_mod"
"dm_crypt"
"cryptd"
"input_leds"
]
++ luks.cryptoModules