{ lib, config, ... }: let inherit (lib) mkIf; cfg = config.bootloader.limine; in { config = mkIf cfg.enable { boot.loader = { efi.canTouchEfiVariables = true; limine = { enable = true; efiSupport = true; secureBoot.enable = cfg.secureBoot.enable; maxGenerations = 10; style = { backdrop = config.theme.colors.base; wallpapers = [config.theme.wallpaper]; }; }; }; }; }