mdadm: insert grub module for mdraid

the condition is not perfect yet. I think one could also have no /boot and just / and grub might be also installed in /boot?
This commit is contained in:
Jörg Thalheim 2023-08-24 09:24:42 +02:00
parent 4eed2457b0
commit 42e9847588

View file

@ -65,6 +65,9 @@
} else {
boot.initrd.services.swraid.enable = true;
})
{
boot.loader.grub.extraConfig = lib.optionalString (config.content._mount == "/boot" && config.metadata != "1") "insmod mdraid1x";
}
] ++
lib.optional (config.content != null) config.content._config;
description = "NixOS configuration";