diff --git a/nixos/modules/system/boot/loader/limine/limine-install.py b/nixos/modules/system/boot/loader/limine/limine-install.py index 7b2e263e401e..be4522299c5b 100644 --- a/nixos/modules/system/boot/loader/limine/limine-install.py +++ b/nixos/modules/system/boot/loader/limine/limine-install.py @@ -559,7 +559,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'])