NixOS new generations in Grub apear only after updating on Arch

Thank you a lot. you are a lifesaver.Everything works like clock right now.

Ok, i will do.

So, if someone got something simillar, here is how i fix this.

  1. I do right partition for disk, it looks like this:


    I use cfdisk, but i think you can use something simillar.

  2. I rebuild my Flash Drive with ventoy to use GPT Partition and add NixOS iso on that.

  3. After that i launch to Flash Drive via boot menu in UEFI mode and before installation, i mount /dev/sdc1 to /boot, after that i start installation.

  4. After installation, I start NixOS via the boot menu and configure configuration.nix to use grub as the bootloader, like this:

boot.loader = {
    grub = {
      enable = true;
      efiSupport = true;
      device = "nodev";
    };
    efi.canTouchEfiVariables = true;
  };

And use nixos-rebuild.

  1. And after all i add this into my arch grub config (/etc/grub.d/40_custom):
menuentry "NixOS" {
    search --no-floppy --set=root --fs-uuid BC21-7037
    chainloader /grub/x86_64-efi/core.efi
}

And rebuild config with: grub-mkconfig -o /boot/grub/grub.cfg.

And now I can access the NixOS bootloader through my main bootloader, which is on Arch.