packages
This commit is contained in:
parent
d6bdbe514d
commit
dd65a32a60
9 changed files with 115 additions and 68 deletions
25
overhaul/modules/boot/grub.nix
Normal file
25
overhaul/modules/boot/grub.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf mkOption types;
|
||||
cfg = config.horseman.boot.grub;
|
||||
in {
|
||||
options = {
|
||||
horseman.boot.grub = {
|
||||
enable = mkEnableOption "Enables grub, the bootloader";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/sda";
|
||||
configurationLimit = 10;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue