You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
361 B
21 lines
361 B
4 years ago
|
{ lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.grub2;
|
||
|
in {
|
||
|
options.grub2 = {
|
||
|
enable = mkEnableOption "grub2 coreboot primary payload";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
coreboot.rom.extraFiles = {
|
||
|
"fallback/payload" = {
|
||
|
type = "payload";
|
||
|
src = "${pkgs.coreboot-payload-grub}/default_payload.elf";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|