This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-07 01:02:16 -06:00
parent 451714ad09
commit f993f9fa73
3 changed files with 65 additions and 3 deletions

19
common/boot/grub.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
with lib;
{
options.mods.boot_grub = {
device = mkOption {
type = types.str;
default = "/dev/sda";
description = ''
The device to install GRUB on.
'';
};
};
config = {
boot.loader.grub = {
enable = true;
device = config.mods.boot_grub.device;
};
};
}