nix-config/modules/boot/loader/grub.nix

20 lines
398 B
Nix

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