add efi var install option

This commit is contained in:
Jörg Thalheim authored and mergify[bot] committed 2024-03-05 09:45:10 +00:00
1 parent f61c7d28d5
commit 3704ee3926
3 files changed
+24 -2

No files matched your search

+14
View File
@@ -111,3 +111,17 @@ or attaching it to a qemu-vm:
```
$ sudo qemu-kvm -enable-kvm -hda /dev/sda
```
### Persisting boot entries to EFI vars flash
Disko-install is designed for NixOS installations on portable storage or disks that may be transferred between computers.
As such, it does not modify the host's NVRAM by default.
To ensure your NixOS installation boots seamlessly on new hardware or to prioritize it in your current machine's boot order,
use the --write-efi-boot-entries option:
```console
$ sudo nix run 'github:nix-community/disko#disko-install' -- --write-efi-boot-entries --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda
```
This command installs NixOS with Disko-install and sets the newly installed system as the default boot option,
without affecting the flexibility to boot from other devices if needed.