From bf3755cc2a5bd54400167d41ce9c75751028bc40 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 26 May 2026 18:29:53 -0400 Subject: refactor bootloaders into modules --- system/bootloader/grub.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 system/bootloader/grub.nix (limited to 'system/bootloader/grub.nix') diff --git a/system/bootloader/grub.nix b/system/bootloader/grub.nix new file mode 100644 index 0000000..7f1b31a --- /dev/null +++ b/system/bootloader/grub.nix @@ -0,0 +1,20 @@ +{ + lib, + config, + ... +}: let + inherit (lib) mkIf; + cfg = config.bootloader.grub; +in { + config = mkIf cfg.enable { + boot.loader = { + efi.canTouchEfiVariables = true; + grub = { + enable = true; + efiSupport = true; + device = "nodev"; + splashImage = config.theme.wallpaper; + }; + }; + }; +} -- cgit v1.3.1-freya