# Boot configuration # Supports both systemd-boot (default) and Limine { config, lib, pkgs, nomarchyConfig, ... }: let # For ISO builds, we'll use Limine; for regular installs, systemd-boot useSystemdBoot = nomarchyConfig.bootloader or "systemd-boot" == "systemd-boot"; in { # Systemd-boot (default for NixOS installs) boot.loader.systemd-boot = lib.mkIf useSystemdBoot { enable = true; configurationLimit = 10; }; boot.loader.efi.canTouchEfiVariables = useSystemdBoot; # Limine support (for ISO) boot.loader.limine = lib.mkIf (!useSystemdBoot) { enable = true; }; }