Add initial grub
This commit is contained in:
parent
dcfa900a6b
commit
ba2f7bab45
2 changed files with 12 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./extlinux
|
./extlinux
|
||||||
|
./grub
|
||||||
./lanzaboote
|
./lanzaboote
|
||||||
./plymouth
|
./plymouth
|
||||||
./services
|
./services
|
||||||
|
|
11
modules/system/devices/boot/grub/default.nix
Normal file
11
modules/system/devices/boot/grub/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
|
boot.loader = lib.mkIf config.boot.loader.grub.enable {
|
||||||
|
grub = {
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
device = "nodev";
|
||||||
|
};
|
||||||
|
efi.canTouchEfiVariables = false;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue