From b29a791a6bed07048f290a4249b934382c83773c Mon Sep 17 00:00:00 2001 From: Daniel Baker Date: Wed, 30 Mar 2022 11:35:13 -0700 Subject: [PATCH] Fixes 'attribute 'efi' already defined' error. --- .../NixOS/Root on ZFS/2-system-configuration.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst b/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst index c54fecc..58dbb77 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/2-system-configuration.rst @@ -319,13 +319,14 @@ System Configuration sed -i '/boot.loader/d' /mnt/etc/nixos/configuration.nix tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <<-'EOF' + boot.loader.efi.canTouchEfiVariables = false; + ##if UEFI firmware can detect entries + #boot.loader.efi.canTouchEfiVariables = true; + boot.loader = { generationsDir.copyKernels = true; ##for problematic UEFI firmware grub.efiInstallAsRemovable = true; - efi.canTouchEfiVariables = false; - ##if UEFI firmware can detect entries - #efi.canTouchEfiVariables = true; grub.enable = true; grub.version = 2; grub.copyKernels = true;