My personal project and infrastructure archive
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.
 
 
 
 
 
 
nomicon/modules/grub2/default.nix

20 lines
361 B

{ 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";
};
};
};
}