Only set bootloader when in VM.
This commit is contained in:
parent
6953cdb81f
commit
033d695fd9
@ -3,12 +3,14 @@
|
|||||||
{
|
{
|
||||||
imports = [];
|
imports = [];
|
||||||
|
|
||||||
|
boot.loader.grub.enable = false;
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
# TODO: make false on real hardware
|
|
||||||
# TODO: make not write bootx64.efi
|
# TODO: make not write bootx64.efi
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = false;
|
||||||
|
|
||||||
# Automatically delete old generations
|
# Automatically delete old generations
|
||||||
boot.loader.systemd-boot.configurationLimit = 3;
|
boot.loader.systemd-boot.configurationLimit = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# efibootmgr -c -d /dev/sda -p 1 -L NixOS-boot -l '\EFI\NixOS-boot\grubx64.efi'
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
({lib, ...}: {
|
({lib, ...}: {
|
||||||
networking.dhcpcd.enable = lib.mkForce true;
|
networking.dhcpcd.enable = lib.mkForce true;
|
||||||
networking.useDHCP = lib.mkForce true;
|
networking.useDHCP = lib.mkForce true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = lib.mkForce true;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user