From 6baa38c9c79263c1948276ec0d706ff39131ddd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Sat, 31 Oct 2020 18:14:37 +0100 Subject: corenix: make coreboot package configurable --- modules/corenix/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/corenix/default.nix b/modules/corenix/default.nix index ff7acb1e950b..d87a83ecaa45 100644 --- a/modules/corenix/default.nix +++ b/modules/corenix/default.nix @@ -30,6 +30,11 @@ in { default = {}; }; + package = mkOption { + type = types.package; + default = pkgs.coreboot; + }; + rom = mkOption { readOnly = true; type = types.path; @@ -54,7 +59,7 @@ in { ) filesList; corenix.rom = let - base = pkgs.coreboot.override { + base = cfg.package.override { inherit (cfg) corebootConfig; }; in pkgs.runCommand "coreboot-rom" { -- cgit v1.2.3