Secure Boot
Setup
Create keys to use for secure boot.
Terminal window sudo nix run nixpkgs#sbctl create-keysEnable Secure Boot in the UEFI and enter Setup Mode or erase the Platform Keys.
Enroll the keys.
Terminal window sudo nix run nixpkgs#sbctl enroll-keys -- --microsoft
Troubleshooting
Outdated secure boot keys
After an OS update while using secure boot, keys might become outdated and this error appears on boot:
Verification failed: (0x1A) Security Violation
The following steps might resolve this issue.
Disable secure boot in the UEFI.
Reset the keys.
Terminal window sudo nix run nixpkgs#sbctl resetSetup secure boot again.
Further reading
- Setting up lanzaboote on Nix