Update boot options

This commit is contained in:
ItsDrike 2024-04-12 20:57:52 +02:00
parent cb968bdc07
commit 0b6b98c6de
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
12 changed files with 143 additions and 21 deletions

View file

@ -0,0 +1,23 @@
{ lib, ... }: with lib; let
inherit (lib) mkEnableOption;
in
{
options.myOptions.system.boot.secure-boot = {
enable = mkEnableOption ''
secure-boot using lanzaboote.
Note that you will need to have UEFI firmware, and the rebuild
will report errors until you generate the secure boot keys with:
```shell
sudo sbctl create-keys
````
Optionally (though enabling this is pointless otherwise), you should
now enter secure-boot setup mode and enroll the keys:
```shell
sudo sbctl enroll-keys -m
```
Then reboot, and secure-boot should be enabled.
'';
};
}