{ lib, config, ... }: let inherit (lib) mkIf; cfg = config.bootloader.grub; in { config = mkIf cfg.enable { boot.loader = { efi.canTouchEfiVariables = true; grub = { enable = true; efiSupport = true; device = "nodev"; splashImage = config.theme.wallpaper; }; }; }; }