From bea3efecfa326a7d90215e51fa234258a220838f Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sun, 26 Apr 2026 10:50:26 +0800 Subject: [PATCH] nixos/limine: disable editor for secure boot --- nixos/modules/system/boot/loader/limine/limine.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/system/boot/loader/limine/limine.nix b/nixos/modules/system/boot/loader/limine/limine.nix index 0cc217f537b9..62687e741638 100644 --- a/nixos/modules/system/boot/loader/limine/limine.nix +++ b/nixos/modules/system/boot/loader/limine/limine.nix @@ -455,6 +455,10 @@ in assertion = cfg.efiSupport; message = "Secure boot is only supported on EFI systems."; } + { + assertion = !cfg.enableEditor; + message = "Editor is unconditionally disabled by Limine."; + } ]; boot.loader.limine.enrollConfig = true;