Unverified Commit cf5212a8 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

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

parents 6fa58b7d 3d836c9d
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
{
  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
  );
}
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
}:
{
  imports = [
    ./boot.nix
    ./bluetooth.nix
    ./camera
    ./debug.nix