Grubx64.efi is only present,Yes I can boot through efi file sometimes with f9 key and secure boot is disabled
Can you boot when Nixos via the dedicated boot key F9?
also do you have secure boot enabled?
hi, it is solved. After windows update it has caused this problem i deleted windows and reinstalled it
now i want to add bios entry in grub which is possible in other distros but not in nix
what do you mean with bios entry in grub?
dualboot?
So first try boot.loader.grub.useOSProber = true;
this should automatically detect other systems like windows on your system after a rebuild and add them to the GRUB Menu.
Uefi firmware setting is not coming and did that
So to put the extra Entries ontop or under the default entries you need to set boot.loader.grub.extraEntriesBeforeNixOS
to false.
Do you mean you have an entry in your GRUB Menu to get back into your BIOS(Uefi firmware setting) and this one is not working?
Yes and I tried the entry before nix also no changees
can you post you configuration please?
try following:
boot = {# Bootloader
loader = {
efi.canTouchEfiVariables = true;
grub ={
enable = true;
device = "nodev";
efiSupport = true;
useOSProber = true;
extraEntries = ''
menuentry "uefi-firmware" {
fwsetup
}
menuentry "System restart" {
echo "System rebooting..."
reboot
}
'';
};
};
Does the System restart entry work?
So i tested this configuration too and the uefi firmware entry took me to my bios.
The Problem with the hirachy is that the Nixos entry is the default Entry but the Nixos-configuration and Windows Entry are not the default.
Thats why the option extra Entries Befor Nixos wont’t work for them.
However I found a solution nixos/grub: Add extraEntriesAtEnd by NazakatUmrani · Pull Request #317730 · NixOS/nixpkgs · GitHub but this does not work on my system (the last comment is from me).
thank you so much for the help till even though it didn’t work it is not serious anymore now i am trying on setting up nvidia prime i having amdigpu and rtx 4050 mobile when i try set prime it fails
and after installing nvida driver i am not able to use x11 which reduces my nvidia settings options how to fix that i am not able to do that and i want set amdigpu as primay modsetting nvida sets it as primary
So first of all think about switching to wayland, because it is much better especially for hybrid graphics. Even if you have an Nvidia Card it works. I have an rtx 4060 an it works like a charm.
Second off all the Nvidia Prime setting allows for 3 Options:
- Offload mode, so your Igpu is the primary and your Nvidia gpu is secondary. The problem with this is that you need to set enviroment variables for each Programs that should run on the Nvidia card.
- In Sync Mode both cards get used
- Reversed Sync Mode i have no idea what it does.
Setting them up is rather easy just follow the wiki.
Nvidia - NixOS Wiki
ok are you using laptop ?? is the battery backup fine
No I mean that nvidia works great with Wayland now days. I don’t have a laptop with hybrid Graphics. So about the battery life I cannot tell you much