summaryrefslogtreecommitdiff
path: root/system/bootloader/grub.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 18:29:53 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 18:29:53 -0400
commitbf3755cc2a5bd54400167d41ce9c75751028bc40 (patch)
treed46595b26e4c9ff4e1b6375b9c57c73fcd136aa2 /system/bootloader/grub.nix
parentadd openrgb support, and custom rust scheduler (diff)
downloaddotfiles-nix-bf3755cc2a5bd54400167d41ce9c75751028bc40.tar.gz
dotfiles-nix-bf3755cc2a5bd54400167d41ce9c75751028bc40.tar.bz2
dotfiles-nix-bf3755cc2a5bd54400167d41ce9c75751028bc40.zip
refactor bootloaders into modules
Diffstat (limited to 'system/bootloader/grub.nix')
-rw-r--r--system/bootloader/grub.nix20
1 files changed, 20 insertions, 0 deletions
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;
+ };
+ };
+ };
+}