packages: {config, ...}: {
    boot = {
        loader = {
            systemd-boot.enable = false;

            efi = {
                canTouchEfiVariables = true;
                efiSysMountPoint = "/boot";
            };

            grub = {
                enable = true;
                device = "nodev";
                version = 2;
                efiSupport = true;
            };
        };
    };
}
