Fixes 'attribute 'efi' already defined' error.
This commit is contained in:
committed by
George Melikov
parent
a3bd990124
commit
b29a791a6b
@@ -319,13 +319,14 @@ System Configuration
|
|||||||
|
|
||||||
sed -i '/boot.loader/d' /mnt/etc/nixos/configuration.nix
|
sed -i '/boot.loader/d' /mnt/etc/nixos/configuration.nix
|
||||||
tee -a /mnt/etc/nixos/${INST_CONFIG_FILE} <<-'EOF'
|
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 = {
|
boot.loader = {
|
||||||
generationsDir.copyKernels = true;
|
generationsDir.copyKernels = true;
|
||||||
##for problematic UEFI firmware
|
##for problematic UEFI firmware
|
||||||
grub.efiInstallAsRemovable = true;
|
grub.efiInstallAsRemovable = true;
|
||||||
efi.canTouchEfiVariables = false;
|
|
||||||
##if UEFI firmware can detect entries
|
|
||||||
#efi.canTouchEfiVariables = true;
|
|
||||||
grub.enable = true;
|
grub.enable = true;
|
||||||
grub.version = 2;
|
grub.version = 2;
|
||||||
grub.copyKernels = true;
|
grub.copyKernels = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user