I've tried archboot, but no luck as I was stuck due to the plymouth missing. Now I want to try to install arch or nixos alongside Win 11. The problem lies in secure boot. I don't have spare linux to sign nixos or arch preliminary, so the question is: can I disable secure boot, boot into linux, and enable secure boot when I want to boot back to Win 11? My main worry is in secure boot regenerating keys after reenabling. I have some proprietary software in Win 11 that can be activated only certain amount of times. I am worried about it being wiped out if Secure Boot changes something.
Secure Boot does not regenerate keys/certificates, but on certain models of motherboards disabling Secure Boot can require deleting or disabling certificates. (I use ASUS Prime Z270-P)
I've tried to follow their guideline to disable Secure Boot. In BIOS, there is Boot menu in which there is OS Type. They've written you can change from Windows UEFI mode to Other OS and Secure Boot will be disabled. When pressing F10 and rebooting, this option goes back to Windows UEFI mode. And I even selected bootable USB as Boot Option #1.
Okay, there seems to be Boot Override option which I will investigate. And also my CSM is set to disabled. And maybe I should write NixOS as GPT instead of MBR. I'll test this.
After reading some articles, I've managed to boot into the NixOS from GPT formatted USB flash drive. First, I've disabled Fast Boot. Then I've moved NixOS to first boot option and disabled second boot option (Windows UEFI). Then I've changed Boot/OS Type to Other OS. Then instead of Save and Exit (F10) I've pressed on my flash drive in boot override. After confirming and rebooting, OS Type was saved in BIOS and I've successfully booted into NixOS.