mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Boot] legacy BIOS -> Grub using assert
This commit is contained in:
parent
803eea5e76
commit
e6f3e0719a
1 changed files with 3 additions and 2 deletions
5
boot.nix
5
boot.nix
|
|
@ -150,6 +150,9 @@ in {
|
||||||
{ assertion = cfg.efi -> !cfg.legacy;
|
{ assertion = cfg.efi -> !cfg.legacy;
|
||||||
message = "exactly one of aviallon.boot.efi and aviallon.boot.legacy must be set";
|
message = "exactly one of aviallon.boot.efi and aviallon.boot.legacy must be set";
|
||||||
}
|
}
|
||||||
|
{ assertion = cfg.legacy -> cfg.useGrub;
|
||||||
|
message = "Using GRUB is mandatory for legacy BIOS";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelParams = toCmdlineList cfg.cmdline;
|
boot.kernelParams = toCmdlineList cfg.cmdline;
|
||||||
|
|
@ -171,8 +174,6 @@ in {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
aviallon.boot.useGrub = mkIf (!cfg.efi) (mkForce true);
|
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.kernelModules = [ ];
|
initrd.kernelModules = [ ];
|
||||||
initrd.availableKernelModules = [ "ehci_pci" ];
|
initrd.availableKernelModules = [ "ehci_pci" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue