From 5d9e8f43d7bd455683102d3dbde67dc507158488 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Fri, 5 Sep 2025 22:16:07 +0530 Subject: [PATCH] nixos/refind: allow use only on UEFI platforms --- nixos/modules/system/boot/loader/refind/refind.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/system/boot/loader/refind/refind.nix b/nixos/modules/system/boot/loader/refind/refind.nix index ca4f7e8d75b8..8e52edd1610f 100644 --- a/nixos/modules/system/boot/loader/refind/refind.nix +++ b/nixos/modules/system/boot/loader/refind/refind.nix @@ -94,6 +94,10 @@ in || pkgs.stdenv.hostPlatform.isAarch64; message = "rEFInd can only be installed on aarch64 & x86 platforms"; } + { + assertion = pkgs.stdenv.hostPlatform.isEfi; + message = "rEFInd can only be installed on UEFI platforms"; + } ]; # Common attribute for boot loaders so only one of them can be