dotfiles/modules/boot/grub.nix
RingOfStorms (Joshua Bell) 3311f30ee9 get h002 working again
2024-11-26 21:11:07 -06:00

31 lines
491 B
Nix

{
config,
lib,
...
}:
with lib;
let
name = "boot_grub";
cfg = config.mods.${name};
in
{
options = {
mods.${name} = {
enable = mkEnableOption (lib.mdDoc "Enable ${name}");
device = mkOption {
type = types.str;
default = "/dev/sda";
description = ''
The device to install GRUB on.
'';
};
};
};
config = mkIf cfg.enable {
boot.loader.grub = {
enable = true;
device = cfg.device;
};
};
}