nixos/facter: enable grub uefi support based on facter report (#473539)

This commit is contained in:
Jörg Thalheim
2025-12-23 14:18:46 +00:00
committed by GitHub
2 changed files with 17 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
{
config,
lib,
...
}:
{
options.hardware.facter.detected.uefi.supported = lib.mkEnableOption "the facter uefi module" // {
default = config.hardware.facter.report.uefi.supported or false;
defaultText = "hardware dependent";
};
config.boot.loader.grub.efiSupport = lib.mkIf config.hardware.facter.detected.uefi.supported (
lib.mkDefault true
);
}
@@ -5,6 +5,7 @@
}:
{
imports = [
./boot.nix
./bluetooth.nix
./camera
./debug.nix