
Instalei o NixOS 19 e como quero fazer dual boot com o Windows 10, preciso usar o grub. E esta é a configuração do meu bootloader:
# Boot loader
boot.loader = {
systemd-boot.enable = false;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
devices = [ "nodev" ];
enable = true;
efiSupport = true;
version = 2;
useOSProber = true;
};
};
Mesmo que eu tenha desativado systemd-boot
, ele ainda aparece systemd-boot
e não grub
!
Reconstruir resultado
sudo nixos-rebuild --install-bootloader swich
:
building Nix...
building the system configuration...
updating GRUB 2 menu...
Found Windows Boot Manager on /dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi
installing the GRUB 2 EFI boot loader into /boot...
Installing for x86_64-efi platform.
modprobe: can't change directory to '/lib/modules': No such file or directory
Installation finished. No error reported.
activating the configuration...
setting up /etc...
reloading user units for sddm...
reloading user units for aryan...
setting up tmpfiles
/boot/Árvore EFI
tree
de /boot/EFI
:
/boot/EFI
├── BOOT
│ └── BOOTX64.EFI
├── Linux
├── nixos
│ ├── cp7c6zhwyipdd78r5d6ffm4p686bpyi3-initrd-linux-4.19.79-initrd.efi
│ ├── n3hx5p444cg1mnwqhicyha7z9d6f0h4h-linux-4.19.79-bzImage.efi
│ ├── p94zhzgyc1iccmp2jfr0nylk6bdr4zzf-initrd-linux-4.19.78-initrd.efi
│ └── s7zp6i6r73a0sri2fihmpnwbqrpsk8fs-linux-4.19.78-bzImage.efi
├── NixOS-boot
│ └── grubx64.efi
└── systemd
└── systemd-bootx64.efi
5 directories, 7 files
Responder1
Eu precisava mudar de Linux-bootloader
para NixOS-bootloader
nas configurações do BIOS.