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
456 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.bios;
in
{
options.bios = {
enable = mkEnableOption "enable bios boot";
device = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
boot.loader = {
timeout = 2;
grub = {
enable = true;
device = cfg.device;
useOSProber = true;
configurationLimit = 20;
theme = pkgs.nixos-grub2-theme;
};
};
};
}