20 lines
433 B
Nix
20 lines
433 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"; # TODO This is probably incorrect
|
|
boot.loader.grub.configurationLimit = 100;
|
|
};
|
|
}
|