nix-config/overhaul/modules/boot/grub.nix
2025-02-11 17:31:06 +01:00

25 lines
416 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.grub;
in {
options = {
horseman.boot.grub = {
enable = mkEnableOption "Enables grub, the bootloader";
};
};
config = mkIf cfg.enable {
boot.loader.grub = {
enable = true;
device = "/dev/sda";
configurationLimit = 10;
};
};
}