From 027454c0eec392cba70bf381881c520e27c2692b Mon Sep 17 00:00:00 2001 From: programmerlexi Date: Wed, 29 Apr 2026 17:48:42 +0200 Subject: [PATCH] nixos/limine: fix secure boot key generation when using impermanence --- nixos/modules/system/boot/loader/limine/limine-install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/loader/limine/limine-install.py b/nixos/modules/system/boot/loader/limine/limine-install.py index 2d8e8b5741de..893bcd245100 100644 --- a/nixos/modules/system/boot/loader/limine/limine-install.py +++ b/nixos/modules/system/boot/loader/limine/limine-install.py @@ -557,7 +557,7 @@ def install_bootloader() -> None: if config('secureBoot', 'enable'): sbctl = os.path.join(str(config('secureBoot', 'sbctl')), 'bin', 'sbctl') - if not os.path.exists("/var/lib/sbctl") and config('secureBoot', 'autoGenerateKeys'): + if not os.path.exists("/var/lib/sbctl/keys") and config('secureBoot', 'autoGenerateKeys'): print('auto generating keys') try: subprocess.run([sbctl, 'create-keys'])