wip
This commit is contained in:
parent
451714ad09
commit
f993f9fa73
3 changed files with 65 additions and 3 deletions
19
common/boot/grub.nix
Normal file
19
common/boot/grub.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue