diff options
Diffstat (limited to 'infra/corenix/modules/tint/default.nix')
-rw-r--r-- | infra/corenix/modules/tint/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/infra/corenix/modules/tint/default.nix b/infra/corenix/modules/tint/default.nix new file mode 100644 index 000000000000..35f292be17f0 --- /dev/null +++ b/infra/corenix/modules/tint/default.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let cfg = config.tint; +in { + options.tint = { enable = mkEnableOption "tint coreboot secondary payload"; }; + + config = lib.mkIf cfg.enable { + corenix.extraFiles = { + "img/tint" = { + type = "payload"; + src = "${pkgs.coreboot-payload-tint}/tint.elf"; + }; + }; + }; +} |