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