diff options
author | Milan Pässler <milan@petabyte.dev> | 2020-10-10 21:32:40 +0200 |
---|---|---|
committer | Milan Pässler <milan@petabyte.dev> | 2020-10-10 21:32:40 +0200 |
commit | 59320a0d896200e3c6c9e058d1f8f1ecb94b78ec (patch) | |
tree | 6513b836c5130bf70958f760cafb0b79494d5675 /modules/tianocore | |
parent | 3b36a893f76201e00ae4100a32a8e3bccb067ae1 (diff) |
.
Diffstat (limited to 'modules/tianocore')
-rw-r--r-- | modules/tianocore/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/tianocore/default.nix b/modules/tianocore/default.nix new file mode 100644 index 000000000000..d71232519ab3 --- /dev/null +++ b/modules/tianocore/default.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.tianocore; +in { + options.tianocore = { + enable = mkEnableOption "tianocore coreboot primary payload"; + }; + + config = lib.mkIf cfg.enable { + coreboot.extraFiles = { + "fallback/payload" = { + type = "payload"; + src = "${pkgs.coreboot-payload-tianocore}/FV/UEFIPAYLOAD.fd"; + }; + }; + }; +} |