summaryrefslogtreecommitdiff
path: root/system/bootloader/limine.nix
blob: 34878092e6e28a212eb1617883484ec14ec08f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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];
        };
      };
    };
  };
}