24 lines
407 B
Nix
24 lines
407 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.frajul;
|
|
let
|
|
cfg = config.modules.system.boot.bios;
|
|
in
|
|
{
|
|
options.modules.system.boot.bios = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable bios booting.";
|
|
device = mkOpt str "/dev/sda" "Disk that grub will be installed to.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
};
|
|
};
|
|
}
|