mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
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:
parent
4eed2457b0
commit
42e9847588
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue