{ lib, config, ... }: { options.bootloader.enable = lib.mkOption { default = false; type = lib.types.bool; }; config = lib.mkIf config.bootloader.enable { boot = { loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; }; }; }