Zuckerberg 9cf2b82e92
Some checks failed
Check Flake / check-flake (push) Failing after 10m41s
Update nixpkgs and cleanup
2023-08-12 19:40:22 -06:00

28 lines
502 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.efi;
in
{
options.efi = {
enable = mkEnableOption "enable efi boot";
};
config = mkIf cfg.enable {
boot.loader = {
efi.canTouchEfiVariables = true;
timeout = 2;
grub = {
enable = true;
device = "nodev";
efiSupport = true;
useOSProber = true;
# memtest86.enable = true;
configurationLimit = 20;
theme = pkgs.nixos-grub2-theme;
};
};
};
}