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

23 lines
426 B
Nix

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