nixos/qemu-vm: consistently use efiSysMountPoint

Remove the explicit creation of efiSysMountPoint. This is not needed in
the scripted or the systemd initrd.
This commit is contained in:
nikstur 2024-02-23 00:56:13 +01:00
parent b7b90d0455
commit cb5a876e82

View File

@ -393,7 +393,7 @@ in
The path (inside the VM) to the device containing the EFI System Partition (ESP).
If you are *not* booting from a UEFI firmware, this value is, by
default, `null`. The ESP is mounted under `/boot`.
default, `null`. The ESP is mounted to `boot.loader.efi.efiSysMountpoint`.
'';
};
@ -1052,11 +1052,6 @@ in
user = "root";
group = "root";
};
"${config.boot.loader.efi.efiSysMountPoint}".d = {
mode = "0644";
user = "root";
group = "root";
};
};
# After booting, register the closure of the paths in
@ -1239,7 +1234,7 @@ in
options = [ "mode=0755" ];
neededForBoot = true;
};
"/boot" = lib.mkIf (cfg.useBootLoader && cfg.bootPartition != null) {
"${config.boot.loader.efi.efiSysMountPoint}" = lib.mkIf (cfg.useBootLoader && cfg.bootPartition != null) {
device = cfg.bootPartition;
fsType = "vfat";
};