See https://github.com/nix-community/nixos-facter-modules/commit/fb9eea6bb0ac1ce07bcf7498fcff6e5f653b6091 Co-authored-by: Christian Friedow <christian@friedow.com>
17 lines
374 B
Nix
17 lines
374 B
Nix
{
|
|
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
|
|
);
|
|
}
|