summaryrefslogtreecommitdiff
path: root/system/bootloader/limine.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/limine.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/limine.nix')
-rw-r--r--system/bootloader/limine.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/system/bootloader/limine.nix b/system/bootloader/limine.nix
new file mode 100644
index 0000000..3487809
--- /dev/null
+++ b/system/bootloader/limine.nix
@@ -0,0 +1,24 @@
+{
+ lib,
+ config,
+ ...
+}: let
+ inherit (lib) mkIf;
+ cfg = config.bootloader.limine;
+in {
+ config = mkIf cfg.enable {
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ limine = {
+ enable = true;
+ efiSupport = true;
+ secureBoot.enable = cfg.secureBoot.enable;
+ maxGenerations = 10;
+ style = {
+ backdrop = config.theme.colors.base;
+ wallpapers = [config.theme.wallpaper];
+ };
+ };
+ };
+ };
+}