{ config, lib, pkgs, ... }: with lib; let device_name = config.mobile.device.name; cfg = config.mobile.boot.stage-1.fbterm; fontsConf = pkgs.writeText "fonts.conf" '' /var/cache/fontconfig ${pkgs.terminus_font} ''; in { options.mobile.boot.stage-1.fbterm = { enable = mkOption { type = types.bool; default = false; description = '' Enables fbterm. ''; }; fb = mkOption { type = types.str; default = "/dev/fb1"; description = '' framebuffer to run fbterm on. ''; }; }; config.mobile.boot.stage-1 = lib.mkIf cfg.enable { init = lib.mkOrder AFTER_FRAMEBUFFER_INIT '' ( touch /init.log echo "Starting fbterm!" env FB=${cfg.fb} fbterm -n terminus -s 32