Add all of iogamaster modules
This commit is contained in:
23
modules/nixos/system/boot/bios/default.nix
Normal file
23
modules/nixos/system/boot/bios/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user