I found a similar post from June
It looks like someone had a similar issue in June, before 20.09 existed. I’ve tried to do everything I was able to understand from that post, to no avail.
That’s what turns up when I search for the error on Google. When I search for it on this forum I get a mysterious 500 error.
The error I get
The first time it installed a ton of stuff before giving me this error. If I retry it jumps straight to the error, unless I reboot and start over from scratch.
installing the boot loader...
setting up /etc...
updating GRUB 2 menu...
installing the GRUB 2 boot loader on /dev/sda...
Installing for i386-pc platform.
/nix/store/nkd8zj3mjws9h1n2qv5y0lwshkm23fh6-grub-2.04/sbin/grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
/nix/store/nkd8zj3mjws9h1n2qv5y0lwshkm23fh6-grub-2.04/sbin/grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/nix/store/nkd8zj3mjws9h1n2qv5y0lwshkm23fh6-grub-2.04/sbin/grub-install: error: will not proceed with blocklists.
/nix/store/awmamb515bkmqyqpq2gads6lzxfcm5i0-install-grub.pl: installation of GRUB on /dev/sda failed: No such file or directory
I am being extremely unambitious
As far as I can tell, I am following to the letter the 20.09 installation instructions. I’ve customized nothing – installed no apps, changed no options except those related to GRUB, nothing.
I’m using UEFI. It wouldn’t matter if I’ve used BIOS in the past, right? I bought my machine, a Dell Inspiron laptop, in December 2017, so surely it can do UEFI, right?
Here are, verbatim, the commands I issue:
sudo parted /dev/sda -- mklabel gpt
sudo parted /dev/sda -- mkpart primary 512MiB -8GiB
sudo parted /dev/sda -- mkpart primary linux-swap -8GiB 100%
sudo parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB
sudo parted /dev/sda -- set 3 esp on
sudo mkfs.ext4 -L nixos /dev/sda1
sudo mkswap -L swap /dev/sda2
sudo mkfs.fat -F 32 -n boot /dev/sda3
sudo mount /dev/disk/by-label/nixos /mnt
sudo mkdir -p /mnt/boot
sudo mount /dev/disk/by-label/boot /mnt/boot
sudo nixos-generate-config --root /mnt
Here is, minus comments, the configuration.nix
file I’m using:
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
efi.efiSysMountPoint = "/boot/efi";
grub = {
enable = true;
version = 2;
efiSupport = true;
devices = ["/dev/sda"];
};
};
networking.hostName = "jbb-dell";
networking.wireless.enable = true;
networking.useDHCP = false;
networking.interfaces.enp2s0.useDHCP = true;
networking.interfaces.wlp1s0.useDHCP = true;
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
users.users.jeff = {
uid = 1000;
isNormalUser = true;
extraGroups = [
"docker"
"wheel"
"networkmanager"
"audio"
"jackaudio"
"dialout"
];
};
system.stateVersion = "20.09";
}