From ba2f7bab459b6afed38a938cf5c5ce6900a83349 Mon Sep 17 00:00:00 2001 From: Bun Date: Mon, 24 Mar 2025 01:08:29 -0400 Subject: [PATCH] Add initial grub --- modules/system/devices/boot/default.nix | 1 + modules/system/devices/boot/grub/default.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 modules/system/devices/boot/grub/default.nix diff --git a/modules/system/devices/boot/default.nix b/modules/system/devices/boot/default.nix index 6a1d3e44..27cdeade 100644 --- a/modules/system/devices/boot/default.nix +++ b/modules/system/devices/boot/default.nix @@ -2,6 +2,7 @@ { imports = [ ./extlinux + ./grub ./lanzaboote ./plymouth ./services diff --git a/modules/system/devices/boot/grub/default.nix b/modules/system/devices/boot/grub/default.nix new file mode 100644 index 00000000..d8cb7f34 --- /dev/null +++ b/modules/system/devices/boot/grub/default.nix @@ -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; + }; +}